I prefer using import java.util.Map; import java.util.HashMap; import java.util.List; import java.util.ArrayList;
I never use * to import anything. Fully qualified names are only used in the code if there's a collission in names. I've found this quite natural. Paci "Noel J. Bergman" wrote: > 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 __________________________________________________________________________ This message and its attachments have been found clean from known viruses with three different antivirus programs. __________________________________________________________________________
