+ 1

How to execute a package program (java)

I am unable to execute the program.I know to compile package program we need to add extra statements but how? https://code.sololearn.com/cqGClO8pgQ5H/?ref=app

21st Jun 2018, 7:55 PM
harshit
harshit - avatar
1 ответ
0
Your package wel is not defined anywhere. try commenting the first line, it will work. You need to import package to use it's classes and methods. Check this- https://www.sololearn.com/learn/Java/2161/
21st Jun 2018, 8:02 PM
Sachin Artani
Sachin Artani - avatar