java 对象数组 from zhaocundang@163.com 先 用类声明数组: 再把类的实例赋给数组: package works; import java.util.Scanner; public class test { public static void main(String[] args) { manage m = new manage(); m.input(); m.output(); m.select_sort(); } } class student{ int sno…
下面代码实现了定义一个数组对象 public class Student { private String username; private int num; public Student(String username, int num) { this.username = username; this.num = num; } public static void main(String[] args) { Student s[] = new Student[10]; for (int i…