摘要: import java.awt.*; public class LoginFrame { public static void main(String args[]){ int a; Frame t=new Frame("GridLayout"); t.setLayout(new GridLayou 阅读全文
posted @ 2017-05-16 17:32 龙虾也忧愁 阅读(108) 评论(0) 推荐(0)
摘要: 今年是2012,闰年?true d1: 2012年12月31日,d2: 2012年12月31日,d1==d2? false, d1.equals(d2)? true 2012年12月31日的明天是 2013年01月01日 2013年01月01日的昨天是 2012年12月31日 阅读全文
posted @ 2017-05-09 16:42 龙虾也忧愁 阅读(193) 评论(0) 推荐(0)
摘要: package 杨; public class y { public static void main(String[] args){ int a[][];int i,j; a=new int[5][]; a[0]=new int[1]; for(i=1;i<=4;i++){ a[i]=new in 阅读全文
posted @ 2017-03-26 22:33 龙虾也忧愁 阅读(87) 评论(0) 推荐(0)
摘要: public class wo { public static void main(String[] args){ for(int i=1;i<=9;i++){ for(int j=1;j<=i;j++) System.out.print(" "+i+"*"+j+"="+i*j); System.o 阅读全文
posted @ 2017-03-20 22:46 龙虾也忧愁 阅读(75) 评论(0) 推荐(0)
摘要: public class a { public static void main(String[] args){ int i=1,j; do{ j=2; while((i%j!=0)&&(i>j)) { j++; } if(i==j) System.out.println(i); i++; }whi 阅读全文
posted @ 2017-03-20 22:45 龙虾也忧愁 阅读(81) 评论(0) 推荐(0)