import java.util.Arrays;
public class Test {
public static void main(String[ ] args) {
Emp[] emps = {
new Emp(1001,"高淇",18,"讲师","2-14"),
new Emp(1002,"高小七",19,"助教","10-10"),
new Emp(1003,"高小八",20,"班主任","5-5")
};
for (Emp e:emps){
System.out.println(e);
}
老师:这个地方没有用e.toString,为什么自动调用e.toString()?谢谢!