冬马面具
2016-07-06 16:17
public class ppp {
public static void main(String[] args){
int one=10;
int two=20;
int three=0;
three=one+two;
System.out.print("three=one+two==>"+three);
three+=one;
System.out.println("three +=one==>"+three);
}
}
输出内容是
three=one+two==>30three +=one==>40
我希望他输出
three=one+two==>30
three +=one==>40
应该是把print改为println吧
Java入门第一季(IDEA工具)升级版
1166786 学习 · 17593 问题
相似问题