摘要:
1 1 public class ComputeArea { 2 3 public static void main(String[] args){ 4 5 double radius; 6 7 double area; 8 9 radius = 20;10 11 area = radius * radius * 3.14159;12 13 System.out.println("The area for the circle of radius " + radius + " is " + area);14 15 }16 17 }18 19 ... 阅读全文
摘要:
public class Welcome { public static void main(String[] args){ System.out.println("Welcome come to Java!"); } }public class ComputeExpression { public static void main(String[] args){ System.out.println((10.5 + 2 * 3) / (45 - 3.5)); }}import javax.swing.JOptionPane;public class WelcomeIn.. 阅读全文