And you probably shouldn't use
import java.io.* either. When you throw open the flood gates with a wild card import, you run the risk of naming collisions as Campbell mentioned. Granted, there may be some cases where it's handy, but
you should think about how much you really need from that package.
As an example, here's one I've run into before. I'm doing graphical stuff, so I need classes under the java.awt package (such as Color, etc.). I could just
import java.awt.*, but now what happens if I'm also using
List collections in my code? Naming collision! There's a
java.util.List (the collection) and a
java.awt.List (the old awt List component). If I use the wildcard import for the awt stuff, now everywhere I use the
List collection type, I have to explicitly write
java.util.List to get around the naming collision.