Can I run multiple classes in the Java Code Playground? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Can I run multiple classes in the Java Code Playground?

I still have yet to test this for myself. I am hoping that I can so I can quit having to copy and paste my freaking codes into BlueJay; it's a waste of my time.

30th Aug 2018, 10:39 PM
Fleet
Fleet - avatar
3 Answers
+ 3
Yes but in SoloLearn you have to define the non-public classes after the main class declaration.
4th Sep 2018, 10:50 AM
Sujal Kumar
Sujal Kumar - avatar
+ 1
please refrain from posting the same question multiple times as it is considered spam.
31st Aug 2018, 10:20 AM
hinanawi
hinanawi - avatar
+ 1
You can, I do it a lot. However, errors will refer to wrong lines, so keep that in mind.
31st Aug 2018, 5:40 PM
BlazingMagpie
BlazingMagpie - avatar