int one = 10 ;
int two = 20 ;
int three = 0 ;
int three1=0;
int three2=0;
three1=one+two;
System.out.println("three = one + two ==>"+three1);
three1+=one;
three2=three1;
System.out.println("three += one ==>"+three2);
int two = 20 ;
int three = 0 ;
int three1=0;
int three2=0;
three1=one+two;
System.out.println("three = one + two ==>"+three1);
three1+=one;
three2=three1;
System.out.println("three += one ==>"+three2);
2015-05-23
在二维数组赋值的时候要注意。public class HelloWorld { public static void main(String[] args) {String[][] names= {{"tom","jack","mike"}, {"zhangsan","lisi","wangwu"}};for (int i = 0; i < names.length ; i++) } for (int j = 0; j < names[i].length; j++) {System.out.println(names[i][j] )}System.out.println();}}}
2015-05-23
public class HelloWorld{
public static void main(String[] args) {
String imooc="我爱慕课网";
System.out.println(imooc);
imooc="www.imooc.com";
System.out.println(imooc);
}
}
public static void main(String[] args) {
String imooc="我爱慕课网";
System.out.println(imooc);
imooc="www.imooc.com";
System.out.println(imooc);
}
}
2015-05-23