+ 1

Can anyone help me how to execute packages in solo learn...

https://code.sololearn.com/cVnJq3uG1n6j/?ref=app I have did in this way

4th Dec 2020, 9:15 AM
Mohammad Shireen
Mohammad Shireen - avatar
3 ответов
+ 9
Ig packages aren't supported.. Btw Minho 🇰🇷 why did in execution it's showing a warning 🤔
4th Dec 2020, 11:00 AM
Piyush
Piyush - avatar
+ 4
Unfortunately, you can't execute your own packages in Sololearn.
4th Dec 2020, 9:23 AM
Minho
Minho - avatar
+ 4
Piyush[21 Dec❤️] "Ig packages aren't supported.." No, "user-defined" packages are not supported in Sololearn. You can still use built-in packages like lang, util, io etc (but not GUI packages like swing, awt etc.) Maybe SoloLearn's compiler automatically creates packages for us. Like how it creates a new .java file whenever we declare a class public. And thus when we try to create our own package , the directory name doesn't match the package name exactly. As we cannot rename a package without renaming the directory in which classes are stored, maybe that's why it shows warning. Well, this is my guess. If someone knows the exact reason, please correct me. https://code.sololearn.com/ci7hK2r06oDP/?ref=app
4th Dec 2020, 2:33 PM
Minho
Minho - avatar