看不懂,求解释
看不懂求解释。
看不懂求解释。
2017-01-30
System.out.println()这句话的引号里面的字符串是直接显示的。
下一次对three的操作是基于上次three的数值。
输出第一句话时,由第4行得出 three = one + two = 10 + 20 = 30;
输出第二句话时,由第6行得出 three = three + one = 30 + 10 = 40;
输出第三句话时,由第8行得出 three = three - one = 40 - 10 = 30;
输出第四句话时,由第10行得出 three = three * one = 30 * 10 = 300;
输出第五句话时,由第12行得出 three = three */one = 300 / 10 = 30;
输出第六句话时,由第14行得出 three = three % one = 30 % 10 = 0; (取余操作)
举报