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

25th Jul 2023, 6:07 AM
Avika Omar
Avika Omar - avatar
3 Antworten
+ 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
25th Jul 2023, 6:12 AM
Darpan kesharwani🇮🇳[Inactive📚]
Darpan kesharwani🇮🇳[Inactive📚] - avatar
+ 3
Why are you asking questions, how will you know until you don't share.
25th Jul 2023, 6:19 AM
Sakshi [Offline 🙃]
Sakshi [Offline 🙃] - avatar
+ 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.
25th Jul 2023, 6:45 AM
Ausgrindtube
Ausgrindtube - avatar