摘要: 1 import java.util.Scanner; 2 public class LinearEquation { 3 public static void main(String[] args){ 4 double a, b, c, d, e, f, x, y; 5 System.out.println("Enter a, b, c, d... 阅读全文
posted @ 2018-10-16 22:14 CHERRYL 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 1 import java.util.Scanner; 2 public class AdditionQuiz { 3 public static void main(String[] args){ 4 int number1 = (int)(System.currentTimeMillis()%10); 5 int number2 = (int... 阅读全文
posted @ 2018-10-16 21:47 CHERRYL 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 1 import javax.swing.JOptionPane; 2 public class TheDirection { 3 public static void main(String[] args){ 4 double a,b,c,t,r1,r2; 5 String number; 6 int messageType=... 阅读全文
posted @ 2018-10-16 21:17 CHERRYL 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 1 import javax.swing.JOptionPane; 2 public class Distance { 3 public static void main(String[] args){ 4 String number; 5 double x1,x2,y1,y2,distance; 6 number=JOptio... 阅读全文
posted @ 2018-10-16 21:12 CHERRYL 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 1 import javax.swing.JOptionPane; 2 public class FrostTemperature { 3 public static void main(String[] args){ 4 double twc,ta,v; 5 String number; 6 number = JOption... 阅读全文
posted @ 2018-10-16 21:12 CHERRYL 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 1 import javax.swing.JOptionPane; 2 public class Population{ 3 public static void main(String[] args){ 4 int sum,s,years; 5 String number; 6 number = JOptionPane.showInputDialog(null,"Enter th... 阅读全文
posted @ 2018-10-16 21:11 CHERRYL 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 1 import javax.swing.JOptionPane; 2 public class Acceleration { 3 public static void main(String[] args){ 4 double v0,v1,t,a; 5 String number; 6 number=JOptionPane.s... 阅读全文
posted @ 2018-10-16 21:09 CHERRYL 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 1 import java.util.Scanner; 2 public class Rate { 3 public static void main(String[] args){ 4 Scanner input = new Scanner(System.in); 5 System.out.println("Enter the subtotal... 阅读全文
posted @ 2018-10-16 21:08 CHERRYL 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 1 import java.util.Scanner; 2 public class Out { 3 public static void main(String[] args){ 4 Scanner input = new Scanner(System.in); 5 System.out.println("Enter a degree in C... 阅读全文
posted @ 2018-10-16 21:07 CHERRYL 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 1 import java.util.Scanner; 2 public class Mi { 3 public static void main(String[] args){ 4 Scanner input = new Scanner(System.in); 5 System.out.println("Enter a value for fe... 阅读全文
posted @ 2018-10-16 21:07 CHERRYL 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 1 import javax.swing.JOptionPane; 2 public class Years { 3 public static void main(String[] args){ 4 String mine; 5 int years,days,mines; 6 mine=JOptionPane.showInpu... 阅读全文
posted @ 2018-10-16 17:26 CHERRYL 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑