Java requires multiple class files | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Java requires multiple class files

Can we setup multiple files in the code playground to use getters and setters in java?

19th Aug 2017, 12:31 AM
Victor Staten
1 Answer
+ 4
Not sure what that has to do with getters and setters, but no, not on code playground. Only one file can be used (the one you create the code on), excluding imports from libraries that are supported. (Like utils and collections). You can create the classes on the same file. class a{} class b{} class c{} etc..
19th Aug 2017, 12:34 AM
Rrestoring faith
Rrestoring faith - avatar