It was displayed this below error:
* package_test.java:1: package in.package does not exist* import in.package.Time1;
* ^* package_test.java:8: cannot access Time1 bad class file: in/package/Time1.java file does not contain class Time1 Please remove or make sure it appears in the correct subdirectory of the classpath.
* Time1 time_test=new Time1();*
but if i used this below line in the package_test.java file insted of using this Time1 time_test=new Time1(); . It will work perfectly.