public class bytee
{
public static void main(String[] args)
{
//如果你用byte 或 short 做運算會自動存成int
byte b1=1,b2=2;
byte b3=(byte)(b1+b2);
System.out.println(b3);
}
}
全站熱搜
public class bytee
{
public static void main(String[] args)
{
//如果你用byte 或 short 做運算會自動存成int
byte b1=1,b2=2;
byte b3=(byte)(b1+b2);
System.out.println(b3);
}
}