已采纳回答 / qq_静若安_0
你用Scanner输入数据的时候,da 和 ye 的顺序弄反了,你第一个int的是da,输入的时候你输入的2017也就是天数而不是年份,而你输入的23才是年份。
2017-06-04
最新回答 / 乱七八糟的代码
public static void main(String[] args) { int one = 10 ; int two = 20 ; int three = 0 ; int three=one+two; System.out.println("three=one+two==>"+three); int three+=one; System.out.println("three+=one==>"+...
2017-06-03
最新回答 / qq_ScorpioMan_0
tom imooc 和 lol 这不是变量 而是字符串 要加双引号 所以 最后输出可以 System.out.println("我里面的变量有:"+ "tom" + "还有"+ "imooc" +"还有"+"lol");也可以 System.out.println("我里面的变量有:"+name + "还有"+ love +"还有"+love);
2017-06-03
最新回答 / qq_呵呵_5
HDUDate(int y,int m,int d){ year=y; month=m; day=d; }调用构造方法给私有成员赋值 ,你写反了,默认值是0
2017-06-03