When numbers are divided, the integer portion is kept and the remainder is disregarded (meaning 10/9 would return 1). Following this format, we get the answer of 6 6 6 3 7 7 9 5 8 8.
I also see that this program can be optimized because you use the same for loop twice, and both of them manipulate list elements in some way. A more optimized program would be:
int a [] = {64 , 66 , 67 , 37 , 73 , 70 , 95 , 52 , 81 , 82};
for (int i = 0; i < a.length; i++) {
a[i] = a[i] / 10;
System.out.print(a[i] + " ");
}
Or maybe you don't need to store the list values for later on. You could do:
for (int i = 0; i < a.length; i++) {
System.out.print(a[i] / 10 + " ");
}
In any situation, your answer is choice 2.