java2简明教程部分课后复习题答案.docVIP

  • 5
  • 0
  • 约2.59万字
  • 约 30页
  • 2020-03-17 发布于安徽
  • 举报
.专业.专注. JAVA2简明教程习题答案 第二章 课堂习题: public class Main { public static void main(String[] args) { //initialization phase初始段 float f1 = 2.5f; float f2; int a = 7; int b = 2; int c; //processing phase 处理段 f2 = f1 + (a/b); c = (a/b); //termination phase终止段 System.out.println(f2的值为: + f2); System.out.println(c的值为: + c); } } 课后习题: 2-4 (小程序部分) import java.applet.*; import java.awt.*; public class Gess extends Applet { public void paint(Graphics g) { //3~1000

文档评论(0)

1亿VIP精品文档

相关文档