标签:
private int count;//计数器
private int ary[] = new int [3];
if(count >= ary.length){
//数组动态扩展
int newlen = (ary.length*3)/2 + 1;
underwears = Arrays.copyOf(ary, newlen);
}
count++;
标签:
原文地址:http://www.cnblogs.com/julyme/p/4224747.html