Convert Linked List to string

Hey . I have a linked list that can do all of the basic things add remove etc. I was woundering if you can turn a linked list into one string.
Example: Say I have a list of Strings [fred, joe, 56, a, dog, 7, tim, I]
Can I convet that into one String  fredjoe56adog7timI ? Or if you cant do that can I convert into multiple Strings    fred joe 56 a dog 7 tim I
Thanks
theldroAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ksivananthCommented:
StringBuilder builder = new StringBuilder() ;
for( String str : list ){
  builder.append( str ) ;
}

String result = builder.toString() ;
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
anilallewarCommented:
Depends on what you want to do..you can convert the list to an array using the toArray() method.

Check out

http://java.sun.com/javase/6/docs/api/java/util/List.html
0
theldroAuthor Commented:
You are to smart
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.