文件名称:StudentTest
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:689byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
按如下要求定义学生类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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.