class test
{
public static void main(String[] args)
{
byte y=125;
y = y+ (byte)5;
System.out.println(y);
}
}
上面的代码无法通过。
y = y+ (byte)5; 改成 y+=(byte)5;就是好的。
{
public static void main(String[] args)
{
byte y=125;
y = y+ (byte)5;
System.out.println(y);
}
}
上面的代码无法通过。
y = y+ (byte)5; 改成 y+=(byte)5;就是好的。