[I cannot be cast to java.lang.Integer at com.cg.genuine.ui.ArrayLisPr.main(ArrayLisPr.java:12)
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class ArrayLisPr {
public static void main(String[] args) {
int[] x={11,20,3,4,5};
List<Integer> po = new ArrayList(Arrays.asList(x));
for(Integer val:po){
System.out.println(val);
}
}
}