
上QQ阅读APP看本书,新人免费读10天
设备和账号都新为新人
练习(Assignment)
1.(Level 1)Learn how to use Eclipse to write and run simple Java programs.
(级别1)学习使用Eclipse编写、编译和运行Java应用程序。
2.(Level 2)Use JDK and Eclipse respectively, compile and run Teacher.java in your handout.
(级别2)分别使用JDK工具和Eclipse集成开发环境,编译和运行Teacher.java应用程序。
3.(Level 2)Add a new method to increase the teacher’s salary with 5000, then print out
the new salary. In addition, add comments to your codes.
(级别2)在Teacher.java中添加一个新方法,将老师的工资提高5000元,同时打印新的工资数目。注意在程序中使用注释。