摘要:
public class MyDate { //声明公有类private int year,month,day; //私有成员函数变量private static int thisYear; //私有静态成员函数变量static //初始化静态成员变量{thisYear =2012;}public 阅读全文
摘要:
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 ( 阅读全文
摘要:
package hello; public class test { public static void main(String[] args) { for (int i=1;i<=9;i++) { for(int j=1;j<=i;j++) { if(j>1) { System.out.prin 阅读全文