摘要:
/*实现计算机 简单界面*/ import java.awt.Button; import java.awt.Color; import java.awt.Frame; import java.awt.Graphics; import java.awt.GridLayout; public clas 阅读全文
摘要:
package mydate; public class mydate { private int year,month,day; private static int thisYear; static {thisYear=2014;} public mydate(int year,int mont 阅读全文
摘要:
package yanghui; public class yanghui {public static void main(String args[]) { int x=10,m,n; int num[][] = new int[x][x]; for(m=0;m<x;m++){ for(n=0;n 阅读全文
摘要:
public class prime { public static void main(String[] args){ int i=1,j; //i初始化为1 do { j=2; //j从最小的素数2开始 while((i%j!=0)&&(i>j)){ //如果不满足while语句的条件,跳出,执 阅读全文
摘要:
public class MultiTable {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);Syste 阅读全文