摘要: public class MyDate { private int year,month,day; private static int thisYear; static {thisYear=2012;} public MyDate(int year,int month,int day) {this 阅读全文
posted @ 2017-05-14 21:52 豆豆泼皮 阅读(122) 评论(0) 推荐(0) 编辑
摘要: public class yanghui { public static void main(String[] args) { // TODO 自动生成的方法存根 int i,j,k,n,a[][]; a=new int[6][]; for(i=1;i<=6;i++) a[i-1]=new int 阅读全文
posted @ 2017-03-30 21:07 豆豆泼皮 阅读(101) 评论(0) 推荐(0) 编辑
摘要: public class test { public static void main(String[] args) { int i,n,k=0; for (n = 3; n<=100; n++) { i=2; while (i<n) { if (n%i==0) break; i++; } if ( 阅读全文
posted @ 2017-03-21 13:30 豆豆泼皮 阅读(131) 评论(0) 推荐(0) 编辑
摘要: package hello; public class test { public static void main(String[] args) { // TODO 自动生成的方法存根 for (int i=1;i<=9;i++) { for(int j=1;j<=i;j++) { if(j>1) 阅读全文
posted @ 2017-03-21 13:11 豆豆泼皮 阅读(91) 评论(0) 推荐(0) 编辑