int three = 30;
int one = 10;
int three+=one;
System.out.println(three);
这样哪里错了?大神们帮帮忙吧,非常感谢
public class chesi {
public static void main(String[] args) {
int three = 30;
int one = 10;
three += one;
System.out.println(three);
}
}
three += one;
这一句使用的时候不用重复定义类型(int)
把第三行啊int去掉,不是已经声明过three了吗