package month_201711;

import java.util.Arrays;
/**
* 数组长度+1
* @author watchfree
*
*/
public class Main27_1 {

public static void main(String[] args) {
// TODO Auto-generated method stub
int [] a = new int[]{1,2,3,4,5,6,7,8,9} ;
a = Arrays.copyOf(a, a.length+1) ;
for (int temp : a) {
System.out.print(temp+" ") ;
}
}

}