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!

Add an array of strings into ArrayList

807599Mar 22 2007 — edited Mar 23 2007
Hi Guys

I would like to add an array of strings into an ArrayList, which i have implemented by using the following code:-
String[] strReturnWords = getInput2(line);
List.add(strReturnWords);
strReturnWords returns an array of Strings.

How do i retrieve the array of strings from the ArrayList. I have tried
String[i] strString = List.toString();
Am i doing this correctly, are their any other ways??

Many thanks
Jason
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 20 2007
Added on Mar 22 2007
16 comments
328 views