I have a int array with 2 number. I wan to copy this number into array list and print them out. as much as possible refrain from using Integer result[];
int result[] = {1024,2048};
List<Integer> res = new ArrayList<Integer>(result);
public class TEA {
/**
* @param args
*/
public static void main(String[] args) {
int result[] = {1024,2048};
List<int[]> res = Arrays.asList(result);
System.out.println(res);
}
}
output :[[I@3312b1dd]