Error in java package problem.
While doing practice with packages I have got an error. Can anyone tell me what is the error and the solution? Thank You.
package keyword is for telling the compiler which package the current class belongs to. You made Main.java a part of the mypack package, but it should be packageless. Instead, replace
import to be able to use the stuff in mypack.