+ 2

How to use multiple classes in the code playground in solo learn?

I have 2 different classes, one enum class and one normal class, to run but I am not able to do it in the same code playground.

17th Apr 2018, 8:33 AM
Sameer Kattel
Sameer Kattel - avatar
2 Answers
+ 3
Make one of the classes private. We can have several classes in a single java file but only one public one. So try making one of them private
17th Apr 2018, 9:05 AM
cyk
cyk - avatar
- 2
it's like headmaster to principal to class teacher to students
22nd Apr 2018, 6:10 PM
Jones Youngblood