摘要:
方法的重载: public static int square(int x){ return x * x;}public static double square(double y){ return y * y;} The square of integer 7 is 49 The square o 阅读全文
摘要:
以下代码的输出结果是什么? int X=100; i nt Y=200; System.out.println("X+Y="+X+Y); System.out.println(X+Y+"=X+Y"); 为什么会有这样的输出结果? 结果: X+Y=100200300=X+Y 加号的结合性是从做到右的, 阅读全文