java程序设计第二版课后习题答案

上传人:鲁** 文档编号:549792089 上传时间:2023-01-13 格式:DOC 页数:288 大小:1.01MB
返回 下载 相关 举报
java程序设计第二版课后习题答案_第1页
第1页 / 共288页
java程序设计第二版课后习题答案_第2页
第2页 / 共288页
java程序设计第二版课后习题答案_第3页
第3页 / 共288页
java程序设计第二版课后习题答案_第4页
第4页 / 共288页
java程序设计第二版课后习题答案_第5页
第5页 / 共288页
点击查看更多>>
资源描述

《java程序设计第二版课后习题答案》由会员分享,可在线阅读,更多相关《java程序设计第二版课后习题答案(288页珍藏版)》请在金锄头文库上搜索。

1、conferences, learned superiors policies; reports, you can learn to deal with problems, art, just wanted to learn, to learn at any time. To continuously expand the scope of the study. The complexity and comprehensiveness of our work, decided to not only do we want to be professionals, or if generalis

2、ts, to dabble in different areas of knowledge. Mastery of knowledge not only to have knowledge to rational analysis. This on requirements we, not only to learning national of route, and approach, and policy, also to learning national of legal, and regulations; not only to with political theory armed

3、 mind, also to with economic theory guide work; not only to read history, also to read history; not only to absorption SM of mirror, also to gets is of road; not only to from local learn, also to to outside learn; not only to to books learn, also to field study learn. Therefore, I would encourage yo

4、u, and more to the outside world when I have time to take a look at, take a stroll, outside developments, learn other peoples development approach, and then come back to guide our work. Second, we must think. Learning without thought to overshadow, thinking without learning is perilous. We want to f

5、oster the character of advancing with the times, forge ahead, often reflect themselves in adapting to the new situation on whether there are delays, have anything to fear in the reform and innovation, whether in terms of accelerating the development of a relaxation, keep promising State of mind. In

6、order to do investigations, investigations is the road to heaven, God disposes of the base. To wants to real heard truth, and justice to truth, and get truth, received effectiveness, on must in-depth actual, and outreach, and in-depth masses, worship masses for Division, and masses heart, with masse

7、s with discussion everyone care of problem, listening they of calls, understand they of mood, feel they of suffering, summary they of experience, concentrated they of wisdom, especially on masses most hope, and most urgent, and most worries, and most complained of hot, and difficulties and focus pro

8、blem, more to active research, caught not put. Dare to innovate, in our work, often remain the old way doesnt work, the new approach would not situation, the reason, the key is that many people know that copying other peoples ideas, mechanically, using someone elses old ways. To change this predicam

9、ent, requires us to break the shackles of traditional concepts to overcome conservative, conformist, good at finding new problems and to accept new things, summarize new experience, new ideas, developing new programmes and Maverick, a new approach to solve problems, speed up development. Especially

10、in implement superior policy spirit of process in the, both implementation, and cannot mechanically, to to extraordinary of courage and develop enterprising of spirit, put flexibility and principle combined up, put superior of spirit and local reality combined up, Yong conspiracy to breakthrough of

11、policy, and exercise innovation of lift, developed out development works of, and grass-roots welcomes of, and/习题2.2import java.util.*;class MyDate private int year; private int month; private int day; public MyDate(int y,int m,int d)/构造函数,构造方法 year=y; month=m; day=d; /end public MyDate(int y,int m,i

12、nt d) public int getYear()/返回年 return year; /end getYear() public int getMonth()/返回月 return month; /end getMonth() public int getDay()/返回日 return day; /end getDay() /end class MyDateclass Employee private String name; private double salary; private MyDate hireDay; public Employee(String n,double s,M

13、yDate d) name=n; salary=s; hireDay=d; /end public Employee(String n,double s,MyDate d) public void print() System.out.println(名字:+name+n工资:+salary+n雇佣年份:+hireYear()+n); /end print() public void raiseSalary(double byPercent) salary*=1+byPercent/100; /end public int hireYear() return hireDay.getYear()

14、; /end class Employeepublic class MyTestClass public static void main(String args) Employeestaff=new Employee3; staff0=new Employee(Harry Hacker,35000,new MyDate(1989,10,1); staff1=new Employee(Carl Carcker,75000,new MyDate(1987,12,15); staff2=new Employee(Tony Tester,38000,new MyDate(1990,3,12); in

15、t integerValue; System.out.println(The information of employee are:); for(integerValue=0;integerValue=2;integerValue+) staffintegerValue.raiseSalary(5); /end for() for(integerValue=0;integerValue=2;integerValue+) staffintegerValue.print(); /end for() /end main()/end class MyTestClass/习题2.4import java.util.*;public class DataType public static void main(String args) boolean flag; char yesChar; byte finByte;

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 资格认证/考试 > 自考

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号