Is it better to list each individual piece of a package you\'re going to need (see #1) or is it better to just import everything from a package (see #2)?
The option 1 you listed is preferable but if there are more classes you are importing from say java.awt.image, then its preferable to just have one import java.awt.image.* Most IDE's let you specify the exact count of the number of imports to be used. For eg in IDEA, we can use File->Settings->Code Style->imports
In the General tab there is a field Class count to use import with *
and default value is 5.