"Anthony Borla" <> wrote in message news:<jhZrb.6155$>...
> "lonelyplanet999" <> wrote in message
> news: om...
> > Hi,
> >
> > I wrote below code which failed in compilation as compiler complained
> > the methods add (java.lang.String) are can't solve symobols. The same
> > method succeeded for LinkedHashSet & TreeSet objects. Why it failed
> > for ArrayList objects ? The syntax description for ArrayList add
> > method accepts object type instance.
> >
> <SNIP>
>
> Try:
>
> ...
> while (it.hasNext()) {
> ...
>
> replacing:
>
> while (arl.hasNext()) {
>
> I hope this helps.
Tks
>
> Anhony Borla