qq_終嚸_0
2017-09-18 10:44
错哪了?????
无需使用int和double再定义
public class HelloWorld{ public static void main(String[] args) { int one = 10 ; int two = 20 ; int three = 0 ; three = one+two; System.out.println("three=one+two==>"+three); three += one; System.out.println("three+=one==>"+three); three -= one; System.out.println("three-=one==>"+three); three *= one; System.out.println("three*=one==>"+three); } }
为什么不需要INT,有的时候缺需要
Java入门第一季(IDEA工具)升级版
1165172 学习 · 17581 问题
相似问题