the question ask for:
user input a number, n then save into array. after that, display the numbers out according to sequence
An array is a fixed size container of elements
int[] numbers = new int[10];
so here I made an array of 10 integers. They will all start at 0, and I can set
[5] = 123; numbers
any number in the array and get
int i = numbers[2];
any number in the array.
But if I try to get a number outside of the bounds of the array (in this case 0-9)
int j = numbers[10];
it will crash. so if a user inputs a number and you want to save that number into an array you need to
thank you so much