Re: iterator.




"Roedy Green" <my_email_is_posted_on_my_website@xxxxxxxxxxxxxx> wrote in
message news:vhe8r15hap41g5f71e68mof303f94p1gip@xxxxxxxxxx
> On Thu, 29 Dec 2005 19:18:20 GMT, "VisionSet" <spam@xxxxxxxxxxxx>
> wrote, quoted or indirectly quoted someone who said :
>
> >// add method
> >public boolean add(Volunteer volunteer)
>
> add methods add something. Your method does no such thing, you should
> not mislead with such a name. Since it returns boolean, you might
> call it...

I've become accustomed to you not replying properly to the poster you
intend, but it sure is annoying Roedy :-)

Why quote my method which does add something under the right conditions in
the same way Collection.add is specified.

http://java.sun.com/j2se/1.5.0/docs/api/java/util/Collection.html#add(E)

--
Mike W


.



Relevant Pages

  • Re: iterator.
    ... >>>public boolean add(Volunteer volunteer) ... >> not mislead with such a name. ... but it sure is annoying Roedy :-) ...
    (comp.lang.java.help)
  • Re: Iterator problem.
    ... > i need a method to check if a volunteer is already in a list and if not ... Here's 2 pointers ... Mike W ... Prev by Date: ...
    (comp.lang.java.help)
  • Re: Problem with contains() method in ArrayList
    ... public boolean equals(Object obj) ... Regards ... Prev by Date: ...
    (comp.lang.java.programmer)