Re: Whats wrong with this code....
- From: "John McGrath" <ng@xxxxxxxxxxxxx>
- Date: Thu, 07 Apr 2005 01:26:14 GMT
On 4/6/2005 at 6:58:43 PM, is0871@xxxxxxxxx wrote:
> If you can figure out whats wrong in the above code(wihout compiling)
One obvious problem is that you are iterating over a collection and
adding to the same collection in the process. This will result in a
ConcurrentModificationException.
--
Regards,
John McGrath
.
- Follow-Ups:
- Re: Whats wrong with this code....
- From: Matt Humphrey
- Re: Whats wrong with this code....
- References:
- Whats wrong with this code....
- From: is0871
- Whats wrong with this code....
- Prev by Date: Re: easy string question
- Next by Date: Re: easy string question
- Previous by thread: Whats wrong with this code....
- Next by thread: Re: Whats wrong with this code....
- Index(es):
Relevant Pages
|