Java package: Difference between revisions

Content deleted Content added
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