How can I input an array as Scanner ordre?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I input an array as Scanner ordre??

https://code.sololearn.com/cWgN1JOS67NK/?ref=app

10th May 2020, 10:51 AM
Amani Toama
Amani Toama - avatar
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...
10th May 2020, 11:06 AM
Jayakrishna 🇮🇳
0
Your question is not clear. See if this thread helps. https://www.sololearn.com/Discuss/2278851/?ref=app
10th May 2020, 11:00 AM
Avinesh
Avinesh - avatar
0
Thanks
10th May 2020, 6:34 PM
Amani Toama
Amani Toama - avatar