Please help me in this java challenge? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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

24th Dec 2022, 12:52 PM
SHREEMAN R
SHREEMAN R - avatar
3 Answers
+ 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.
24th Dec 2022, 2:04 PM
Tibor Santa
Tibor Santa - avatar
+ 2
What do you have so far?
24th Dec 2022, 12:59 PM
Ausgrindtube
Ausgrindtube - avatar
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?
24th Dec 2022, 1:43 PM
SHREEMAN R
SHREEMAN R - avatar