Alex Blewitt wrote:
> Has anyone got any preferences between using:
>
> import java.util.*
>
> or
>
> import java.util.Vector
> import java.util.Enumeration

Personally, in most cases I find that the actual pattern is something like:

  import java.util.Collection;

  Collection mywhatever;

  mywhatever = new java.util.SOME_COLLECTION_TYPE(...);

I do not bother to import the specialized class used only once.  I do import
the base type that is part of the interface.

        --- Noel

Reply via email to