import java.util.*;
public class test {
public static void main(String args[]) {
ArrayList tmpList = new ArrayList();
tmpList.add(new Integer(1));
tmpList.add(new Integer(2));
tmpList.add(new Integer(3));
Integer tmpInteger[] = new Integer[tmpList.size()];
int tmpInt[] = new int[tmpList.size()];
tmpList.toArray(tmpInteger);
for(int i = 0; i < tmpInteger.length;i++) {
tmpInt[i] = tmpInteger[i].intValue();
System.out.println(tmpInt[i]);
}
}
}