import java.util.*;
also could use import java.util.Scanner; but java.util.*; uses the entire java.util package.