0
hey, I'm new in java program i have tried a program using scanner class and it is showing "NO OUTPUT" can anyone help ???
i am new in java and i have just tried steam selection program(if else and scanner class) and when i complied it , was showing "no output" ..... help please it will means a lot https://code.sololearn.com/c8WaIvmSa3z3/?ref=app
3 Answers
+ 3
Avika Omar
Don't repeat your own questions..
https://www.sololearn.com/Discuss/3228873/?ref=app
If you're having trouble in code, share your code and describe what error message you're receiving. without watching no one can figure out what's going wrong.
Edit:-
few errors in your code..
1:-Missing missing a closing bracket after the `else if`.
2:- the main method is not taking any arguments
use like this for fix error,use public static void main(String[] args)"insted of "public static void main()" .
see this modified code..
https://code.sololearn.com/c0pnI7HxSiDA/?ref=app
+ 3
Why are you asking questions, how will you know until you don't share.
+ 3
You changed the main method and removed the necessary code inside the parentheses "()", you're also missing a closing bracket on line 15.
The latter would be easier to spot if you tried to write your code in a neater way.