- import java.util.*;
- class Test9
- {
- public static void main(String[] args)
- {
- List<Integer> al = new ArrayList<Integer>();
- al.add(1);
- al.add(1);
- al.add(1);
- Integer[] in = al.toArray(new Integer[0]);
- int a = in.length;
- int[] in1 = new int[a];
- for (int i = 0; i < in.length ; i++ )
- {
- in1[i] = in[i];
- System.out.println(in[i]);
- }
- }
- }
复制代码 难道是这样? |