标签:
1 public class student{ 2 private String name; 3 ... 4 } 5 6 public class TestStudent{ 7 public static void main(String[] args){ 8 //常见的声明 9 String[] str=new String[3]; 10 //同理,创建多个类数组 11 Student[] stu=new Student[3]; 12 stu[0]=new Student(); 13 } 14 }
标签:
原文地址:http://www.cnblogs.com/1020182600HENG/p/5878261.html