+1, more general, more evolutive

Jacques

From: "Adrian Crum" <[EMAIL PROTECTED]>
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?


Reply via email to