0

How can i create a new class in the Sololearn code playground?

16th Sep 2020, 1:41 PM
Rinaldo Garcia
Rinaldo Garcia - avatar
3 Answers
+ 6
If you are talking about creating classes as different files, separate from your main source code, that is not possible on Code Playground. Your classes and main function has to be within the same code here.
16th Sep 2020, 2:04 PM
Fermi
Fermi - avatar
+ 3
You can declare multiple classes inside one java file. Be aware, that only one public class can exist in each file. Or you can declare inner class inside existing one. https://code.sololearn.com/cYA3cG4W0iaX/?ref=app
16th Sep 2020, 2:08 PM
Aleksandrs
Aleksandrs - avatar