0
这是什么问题;int为字节,“无法解析为变量”。哪里不对?
public class cast {
public static void main(String args[]){
double x, y;
int i;
char c;
x = 10.0;
y = 3.0;
i = (int) (x/y);
System.out.println("Integer outcome of x/y = " + i);
i = 100; //Assaigning new value to i.
b = (byte) i;
System.out.println("The value of i is: " + b);
}
}
它给了我下面的错误信息; b不能解析为变量。
虽然我没有,正是因为他们在书中做了(我认为,重新读了这本书指令像五次....)