2012年12月21日
摘要: 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 ... 阅读全文
posted @ 2012-12-21 22:49 bailun 阅读(783) 评论(0) 推荐(0) 编辑
  2012年12月17日
摘要: 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.. 阅读全文
posted @ 2012-12-17 13:47 bailun 阅读(382) 评论(0) 推荐(0) 编辑