Newbie: iterating two collections
- From: "usgog@xxxxxxxxx" <usgog@xxxxxxxxx>
- Date: 30 Oct 2006 15:34:01 -0800
I have two ArrayLists: List<Boolean> A and List<T> B with same size. I
want something like
for (int i =0; i < A.size(); i++) { B[i].booleanValue =
A[i].booleanValue); }. Just one to one value set. I am pretty new to
iterators. Can I use foreach in java for that? Any decent approach
instead of nested loops?
.
- Follow-Ups:
- Re: Newbie: iterating two collections
- From: tej
- Re: Newbie: iterating two collections
- From: Mark Jeffcoat
- Re: Newbie: iterating two collections
- From: heysc0tt
- Re: Newbie: iterating two collections
- Prev by Date: Re: a problem in transfer a int to Object
- Next by Date: Re: Problem in the Getting Index possition in JAVA
- Previous by thread: How to set a character of a String?
- Next by thread: Re: Newbie: iterating two collections
- Index(es):
Relevant Pages
|