文件名称:StudentTest
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- ba***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
按如下要求定义学生类Student:
1) 该类描述学生的信息:姓名、学号、学院、专业;
2) 该类并提供上述信息的获取方法和设置方法。
3) 覆盖实现toString()方法,以便打印输入该类对象时输出上述信息。
4) 通过实现comparable接口,定义该类对象的按学号大小的compareTo()比较方法。
5) 在main方法中,创建一个该类对象来表示自己的上述个人信息。-The following requirements define the student class Student: 1) the class descr iption of the student information: name, school, college, professional 2) the class and provide the above information access and setters. 3) to achieve coverage of toString () method, in order to print the output when the input class object. 4) through to achieve comparable interface, define such objects according to the size of the student number of the compareTo () to compare. 5) In the main method, create a class object to represent the above personal information.
1) 该类描述学生的信息:姓名、学号、学院、专业;
2) 该类并提供上述信息的获取方法和设置方法。
3) 覆盖实现toString()方法,以便打印输入该类对象时输出上述信息。
4) 通过实现comparable接口,定义该类对象的按学号大小的compareTo()比较方法。
5) 在main方法中,创建一个该类对象来表示自己的上述个人信息。-The following requirements define the student class Student: 1) the class descr iption of the student information: name, school, college, professional 2) the class and provide the above information access and setters. 3) to achieve coverage of toString () method, in order to print the output when the input class object. 4) through to achieve comparable interface, define such objects according to the size of the student number of the compareTo () to compare. 5) In the main method, create a class object to represent the above personal information.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
StudentTest.java