A note on Java packages
-
- The package statement must be the first line of code. It says that this class is in the package tutorial.tcltk98. The second imports all classes in java.util. In this example, we could have written
- import java.util.GregorianCalendar;
- All classes in java.lang are imported by default.