+ 1

[SOLVED] Instead of accepting my input, the compiler is simply changing my input to blank. Some weirdness is going on.

Nested switch case to convert any number system to the other. Original code: https://code.sololearn.com/cWyMTwPP4sy1/?ref=app Go to case 2 and notice my String input statement (line 75).It is not letting me enter the binary number.Try and print the input itself and a line break will be printed.

1st Feb 2020, 5:25 AM
Jishnu Mukherjee
Jishnu Mukherjee - avatar
11 Answers
+ 4
I will not go through the whole code, can you please tell me what lines I need to input for the code to run? It'll be the most helpful that way so I can try to debug it.
1st Feb 2020, 5:33 AM
coddy
coddy - avatar
+ 4
~ swim ~ I have written another code in my computer with the same style of input for the same task with same statement. Why would that not show a wrong output then?
1st Feb 2020, 6:19 AM
Jishnu Mukherjee
Jishnu Mukherjee - avatar
+ 4
Yes ,fine, What changes should I make in my 1st program to implement the input properly?
1st Feb 2020, 6:38 AM
Jishnu Mukherjee
Jishnu Mukherjee - avatar
+ 3
~ swim ~ Thank you so much! I am an idiot.
1st Feb 2020, 6:41 AM
Jishnu Mukherjee
Jishnu Mukherjee - avatar
+ 2
Coder's Crux 2 21 100 should return 4 but 0 is what you get,you get zero for anything you enter. case 1 and 4 are super fine but 2 and 3 is acting weirdly.
1st Feb 2020, 5:39 AM
Jishnu Mukherjee
Jishnu Mukherjee - avatar
+ 2
I couldn't find any simple mistake error, are you using sl or an ide to make this?
1st Feb 2020, 5:48 AM
coddy
coddy - avatar
+ 2
What is sl or vs? I don't even know. I tried this on fully updated BlueJ and it still doesn't work.
1st Feb 2020, 5:52 AM
Jishnu Mukherjee
Jishnu Mukherjee - avatar
+ 2
As long as you use some ide it's fine. Try to verify your code with other people's algorithms on cases 2 and 3, because I can't suggest anything else to do..
1st Feb 2020, 6:06 AM
coddy
coddy - avatar
+ 2
I don't think this has anything to do with IDE, thanks for your cooperation anyways.
1st Feb 2020, 6:13 AM
Jishnu Mukherjee
Jishnu Mukherjee - avatar
0
Erialdo Meta đŸ‡ŠđŸ‡± I am not doing that. It would take several hours to alter the code.It is now neither important to me nor do I have any more issues it.
2nd Feb 2020, 4:22 AM
Jishnu Mukherjee
Jishnu Mukherjee - avatar
0
Erialdo Meta đŸ‡ŠđŸ‡± Thumbs up for predicting my future.
2nd Feb 2020, 7:30 PM
Jishnu Mukherjee
Jishnu Mukherjee - avatar