4. Importing

Created Friday 20 March 2015

http://www.saylor.org/site/wp-content/uploads/2013/02/CS101-3.1.2-Importing-Libraries-FINAL.pdf

import javax.swing.JOptionPane;

import javax.swing.*;

Unless there are comments, the first statement in a Java file should be a package
declaration. Following this package declaration, you can add the import statements as
listed above.

package geometry;
import java.awt.*;
pubic class rectangle {
...
}



Backlinks: