Personally, I prefer passing around interfaces. -Adrian
Adam Heath wrote:
Is there any particular reason why several of the methods in this class return an *ArrayList*, instead of just a *List*?And in the more general case, shouldn't all methods return generic classes? Map instead of HashMap or TreeMap, List instead of ArrayList/LinkedList, etc?
