코드 1
import java.util.*; // java.util 패키지의 모든 클래스
import java.text.*; // java.text 패키지의 모든 클래스
코드 2
import java.*; // java 패키지의 모든 클래스. 패키지는 포함안 됨
예제 1
import static java.lang.Integer.*; // Integer클래스의 모든 static 메서드
import static java.lang.Math.random; // Math.random()만. 괄호 안붙임
import static java.lang.System.out; // System.out을 out만으로 참조 가능
예제 2
import static java.lang.Math.*;
import static java.lang.System.out;
out.println(random());
out.println("Math.PI :" + PI);