上一页 1 ··· 4 5 6 7 8
摘要: 1 public class Population{ 2 public static void main(String[] args){ 3 int sum,s; 4 s=365*5*24*60*60; 5 sum=312032486+s/7-s/13+s/45; 6 System.out.println(sum); 7 } 8 } 阅读全文
posted @ 2018-10-16 17:20 CHERRYL 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 1 public class S{ 2 public static void main(String[] args){ 3 double w=4.5; 4 double h=7.9; 5 double d; 6 double s; 7 d=2*(w+h); 8 s=w*h; 9 System.out.println("面积为:" + s); 10 System.out.prin... 阅读全文
posted @ 2018-10-16 17:19 CHERRYL 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 1 public class Outcome{ 2 public static void main(String[] args){ 3 double x, y; 4 x=4*(1.0-1.0/3+1.0/5-1.0/7+1.0/9-1.0/11); 5 y=4*(1.0-1.0/3+1.0/5-1.0/7+1.0/9-1.0/11+1.0/13); 6 System.out.println(x)... 阅读全文
posted @ 2018-10-16 17:18 CHERRYL 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 1 public class Five{ 2 public static void main(String[] args){ 3 for(int i=0;i<5;i++){ 4 System.out.println("Welcome to Java"); 5 } 6 } 7 } 阅读全文
posted @ 2018-10-16 17:17 CHERRYL 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 1 public class TuAn{ 2 public static void main(String[] args){ 3 System.out.println(" J A V V A"); 4 System.out.println(" J A A V V A A"); 5 System.out.println("J J... 阅读全文
posted @ 2018-10-16 17:16 CHERRYL 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 1 public class print{ 2 public static void main(String[] args){ 3 System.out.println("Welcome to Java"); 4 System.out.println("Welcome to Computer Science"); 5 System.out.println("Programming is fu... 阅读全文
posted @ 2018-10-16 17:15 CHERRYL 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 1 int messageType=JOptionPane.INFORMATION_MESSAGE; 2 String message=mines + " minutes is approximately " + years + " years and " + days + " days"; 3 JOptionPane.showMessageDia... 阅读全文
posted @ 2018-10-16 12:37 CHERRYL 阅读(358) 评论(0) 推荐(0) 编辑
摘要: /*2018年8月26日15:55:29作者:冰樱梦page-24泳池迷宫*/public class swiming{public static void main(String[] args){int x=0;while(x<1){System.out.print("a");if(x<1){Sy 阅读全文
posted @ 2018-08-26 15:59 CHERRYL 阅读(426) 评论(0) 推荐(0) 编辑
摘要: public class paixu{public static void main(String[] args){int x=3;if(x>2){System.out.print("a");}x=x-1;System.out.print("-");if(x==2){System.out.print 阅读全文
posted @ 2018-08-26 14:29 CHERRYL 阅读(142) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8