0

Help in finding this error

https://code.sololearn.com/cv403NincbJ0/?ref=app Can Someone pls help me in solving this error. I want to run n loop 4n-1 times but it is executing more than that. It is working fine if I use Scanner class but not in this case.

9th Jul 2020, 11:39 AM
Aditya Prakash
Aditya Prakash - avatar
2 Respuestas
0
You can check it in your pc , it's running fine without any compilation error. thats the error I think, it's not able to take the input correctly.
9th Jul 2020, 11:55 AM
Aditya Prakash
Aditya Prakash - avatar
0
I wanted to input 2 space separated integers. Firstly, I had input it normally using in.readLine() , but was not accepting the space separated integers. So, I googled to see how to input space separated integers in java using bufferedReader. My point for this code was to accept 2 space separated integers using BufferedReader class. Thanks for looking deeper into code inspite of so much errors
9th Jul 2020, 12:59 PM
Aditya Prakash
Aditya Prakash - avatar