both of them is a for loop , which one you like? List aList = Arrays.asList(1,2,3,4,5); Integer score[] = {1,2,3};
for (Integer a: aList) {