超人TT
2016-02-02 17:29
为什么前面可以用int,后面关于“three”的计算不能用int????
public class HelloWorld{
public static void main(String[] args) {
int one = 10 ;
int two = 20 ;
int three = 30 ;
three +=three+one;
three -=three-one;
three *=three+one;
three /=three/one;
three %=three%one;
System.out.println("three = one+two==>"+three);
System.out.println("three += one ==>"+three +);
System.out.println("three -= one ==>"+three -);
System.out.println("three *= one ==>"+three *);
System.out.println("three /= one ==>"+three /);
System.out.println("three %= one ==>"+three %);
}
}
System.out.println("three += one ==>"+three +); 有问题吧 three+不是一个变量吧
加运算符? three+ 什么意思
Java入门第一季(IDEA工具)升级版
1165172 学习 · 17581 问题
相似问题