Content deleted Content added
→Creation of JAR files: moving up |
→Using packages: moved up from JAR section |
||
Line 11:
== Using packages ==
In Java source files, the package that the file belongs to is specified with the <code>package</code> [[keyword (computer programming)|keyword]].
package java.awt.event;
To use a package inside a Java source file, it is convenient to import the classes from the package with an <code>import</code> statement. The statement
|