+ 1

What is the problem?

What is the problem with my code? https://code.sololearn.com/cLTlzshdBXih/?ref=app

20th Sep 2018, 2:46 PM
Metin Bozkurt
Metin Bozkurt - avatar
6 Réponses
+ 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
21st Sep 2018, 1:36 PM
Daniel (kabura)
Daniel (kabura) - avatar
+ 2
everything works on my pc, maybe more information ?
20th Sep 2018, 6:08 PM
Daniel (kabura)
Daniel (kabura) - avatar
+ 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
20th Sep 2018, 7:38 PM
Daniel (kabura)
Daniel (kabura) - avatar
+ 1
It may work on pc but here there is an exception that i didn't understand
20th Sep 2018, 6:51 PM
Metin Bozkurt
Metin Bozkurt - avatar
0
What should i do then bro?
21st Sep 2018, 1:27 PM
Metin Bozkurt
Metin Bozkurt - avatar
0
Ohhhh okay i will try thanks
21st Sep 2018, 1:38 PM
Metin Bozkurt
Metin Bozkurt - avatar