对象数组(初学)

package day01;

public class Case08 {
public static void main(String[] args) {
Student [] array=new Student[3];
Student one= new Student("ly",22);
Student two= new Student("ly",22);
Student three= new Student("ly",22);
array[0]=one;
array[1]=two;
array[2]=three;
System.out.println(array);//dizhi
}
}
posted @ 2019-04-08 14:31  py-clj  阅读(193)  评论(0编辑  收藏  举报