慕移动7222284
2019-02-16 04:08
public class HelloWorld{
public static void main(String[] args) {
int one = 10 ;
int two = 20 ;
int three = one + two ;
System.out.println(""+three);
int three += one;
System.out.println(""+three);
three -= one;
System.out.println(""+three);
three *= one;
System.out.println(""+three);
three /= one;
System.out.println(""+three);
three %= one;
System.out.println(""+three);
第5行已经申明过,当然不能重复申明了。变量只能一次申明,赋值才允许多次的。
Java入门第一季(IDEA工具)升级版
1165172 学习 · 17581 问题
相似问题