package test;
public class Test {
public static void main(String[] args) {
Phone[] phoneArray = new Phone[5];
Phone phone = null;
for (int i = 0; i < 5; i++) {
phone = new Phone();
phoneArray[i] = phone;
}
}
}
class Phone{}
其实也没有什么啊。就是放了phone的五个引用到数组中,可以访问相应的对象啊。