+ 1
What is the problem?
What is the problem with my code? https://code.sololearn.com/cLTlzshdBXih/?ref=app
6 Answers
+ 3
if your using multiple inputs remember that your scanner is looking for a new line containing either a string or a integer, when inputting make sure you use diffrent lines and that the input matchs the specified type as you cant use nextInt() for string this would thow an exception
+ 2
everything works on my pc,
maybe more information ?
+ 2
try typing "1 1 1 1 1 1 1 1 1 1 1 1 1" (with a space), it should work
because it's a java compiren for a phone, you can enter data only once, if the program asks you to enter, for example, an int in different places, the codes will not work, all data must be entered at the very start of the program
+ 1
It may work on pc but here there is an exception that i didn't understand
0
What should i do then bro?
0
Ohhhh okay i will try thanks