Why is this Java task wrong? Why does it say that there is no output? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Why is this Java task wrong? Why does it say that there is no output?

https://code.sololearn.com/coirJQdnnT40/?ref=app

8th Apr 2022, 9:16 PM
Sndr Brst🇩🇪
Sndr Brst🇩🇪 - avatar
3 Answers
+ 4
Weirdest thing... your comment makers are in reverse order. You first have */ and then /* That leaves an open comment at the end of your code. Since multiple public toplevel classes are not permitted but all need different files with the class name as file name, your submitted code must be split. It appears to be that the open comment comments out your entire code when it is split. To fix: fix the commenting at the bottom.
8th Apr 2022, 9:28 PM
Ani Jona 🕊
Ani Jona 🕊 - avatar
+ 2
Along with mentioned that 'Cut line no: 47 paste in line 53', already, You cannot use protected to top level class. Use either public or nothing.. So remove protected before squire, circle classes...
8th Apr 2022, 10:06 PM
Jayakrishna 🇮🇳
9th Apr 2022, 8:11 AM
Sndr Brst🇩🇪
Sndr Brst🇩🇪 - avatar