摘要:
设计思路: 需要考虑的是信息的存储,显示。 首先是接口规范的定义: public interface ISetStudent { // 规范学生信息设置类 public Student[] setStudentsArray(Student[] stuArray,Student student, in 阅读全文
摘要:
设计思路: 比较器首先Comparable<T>,并使用Array.sort()进行排序,最后使用Array.toString()进行输出显示。 代码实现: 首先进行学生类的创建,学生类进行接口Comparable<T>的实现。 public class Student implements Com 阅读全文