Re: from false to true in an ArrayList
- From: "Tony Morris" <not@xxxxxxxxxxx>
- Date: Wed, 11 Jan 2006 09:29:43 +1000
"ste1986" <steiddon_1@xxxxxxxxxxx> wrote in message
news:bd604d8abbc5fa59080c9e5e908b02e8@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> how can i change the value of a boolean in an ArrayList from false to
> true?
>
> public void crbCheck (String name)
> {
> Iterator it = volunteer.iterator();
> while (it.hasNext())
> {
> Volunteer volunteer = (Volunteer) it.next();
> if ((name)volunteer.crbCheck() = false)
> (name)volunteer.crbCheck() = true;
> }
> }
>
Sounds like you need the superior solution proposed on
http://www.thedailywtf.com/
http://www.thedailywtf.com/forums/56201/ShowPost.aspx
or
http://www.thedailywtf.com/forums/49202/ShowPost.aspx
Good luck :)
--
Tony Morris
http://tmorris.net/
.
- References:
- from false to true in an ArrayList
- From: ste1986
- from false to true in an ArrayList
- Prev by Date: Re: declaring remove
- Next by Date: Re: Polymorpism - is this correct?
- Previous by thread: Re: from false to true in an ArrayList
- Next by thread: removing error
- Index(es):
Relevant Pages
|