Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How do i get a String out of an ArrayList?

843789Apr 3 2009 — edited Apr 3 2009
I was trying to make a list I could grow and I was informed that arrays couldn't grow, an ArrayList was suggested.

This seems like it will work perfectly except for the fact that I can't retrieve a String from the ArrayList.

I'm getting errors like incompatible type String:Object or expected:[] found ArrayList.

I tried .toString but that just gives me a bunch of giberish.

Any advice would be most welcome.

Thanks in advance,

Hans.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 1 2009
Added on Apr 3 2009
4 comments
147 views