摘要: public class shuzu2 { public static void main(String[] args) { //二维数组 int[][]a=new int[2][3]; a[0][0]=1; a[0][1]=2; a[0][2]=3; a[1][0]=8; a[1][1]=5; a 阅读全文
posted @ 2016-02-27 15:45 百事没事 阅读(670) 评论(0) 推荐(0) 编辑
摘要: public class shuzu { public static void main(String[] args) { //数组 //类型+[] // int[]s; // // Spring[]str; // // //使用之前初始化大小 // int[]a=new int[5];//数组初始 阅读全文
posted @ 2016-02-27 14:00 百事没事 阅读(718) 评论(0) 推荐(0) 编辑
摘要: ---恢复内容开始--- //猴子吃桃 int a=1; for(int i=6;i>=1;i--) { a=(a+1)*2; } System.out.println(a); //象棋盘 double sum = 0; for (int i = 1; i <=1; i++) { double x= 阅读全文
posted @ 2016-02-27 08:55 百事没事 阅读(205) 评论(0) 推荐(0) 编辑