0
Please help me in this java challenge?
Project : LanguageDetails Package : org.lang Class 1 : LanguageInfo Methods : tamilLanguage(), englishLanguage(), hindiLanguage() Class 2 : StateDetails Methods : southIndia(),northIndia() Description : Create project, Package, Class and call all Methods
3 odpowiedzi
+ 5
Normally in a Java project, you arrange your packages in a hierarchy that is also mirrored by the folders that contain your source code.
You would create a separate .java file for each of your classes. You can have multiple classes in the same package - this means multiple Java files in the same folder.
Cannot really replicate this in Sololearn playground, here we only have a single source file where we can put multiple classes, and we cannot declare packages.
+ 2
What do you have so far?
0
Hi, there, IDK how to start this code because of class declaration. Can we declare two public classes in a single package? If yes how?