Quote:
I know how to create a array of user determined size but I only know how to do that using two inputs, not all in one array input statement. I'm just very confused. any help?
Here you are the code for reading a input line and store the integers in a array:
Scanner s = new Scanner(System.in);
int n = s.nextInt();
int [] a = new int [n];
for (int i=0; i<n; ++i)
a[i] = s.nextInt();
Then follow
Griff's suggestions.