Quote:
for(Integer interger: numbers){
System.out.println(scanner.nextInt());
}
Read that code again: for each number in the
numbers
list, you
ask the user to enter a new number, and then print that new number.
Based on your description, you need to print
the number the user has already entered instead.
If only there was an
interger
variable you could use to get that number...