package demo.arrays;
import java.util.Arrays;
public class ArraysDemo {
public static void main(String[] args) {
String[] titles = {"用户名","真实姓名","手机","性别","生日","职业","地区","班级总进度"};
int length = titles.length;
for(int i=0; i<3; i++){
titles = Arrays.copyOf(titles, titles.length+1);
titles[length+i]=i+"";
}
System.out.println(Arrays.asList(titles));
}
}