This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Yes, but the method doesn't know whether you ever do anything with the result. For example in this post from a few minutes ago, I have actually used the boolean return value from the addAll method, which the original code ignored.
Joined: Oct 13, 2005
Notice also that the "addAll" method does something, then returns "true" or "false" to show whether that "something" worked.