0
How can I input an array as Scanner ordre??
3 Answers
+ 1
You are not declared j in loop, and condition should be j<array.length not, <=.
And you put semicolon after loop, remove that..
Correct way :
for(int j=0; j<numberPhone1.length; j++)
numberPhone1[j] = in.nextInt();
Edit:
Frame question clearly by editing...
0
Your question is not clear.
See if this thread helps.
https://www.sololearn.com/Discuss/2278851/?ref=app
0
Thanks