- #1
uperkurk
- 167
- 0
Hey guys, I have an
and I have a textbox, the textbox allows a user to enter a word and that word will be added into the ArrayList.
When I print the list out it looks like this
can you please write out the for loop that I need in order to change the ArrayList into a string? I want the output to look like this
Please don't say go read this or read that, I've googled for loops but I can't find one that will do what I want.
Thanks.
Code:
ArrayList<String> al = ArrayList<String>();
When I print the list out it looks like this
Code:
[Cat, Dog, Mouse]
Code:
Cat Dog Mouse
Please don't say go read this or read that, I've googled for loops but I can't find one that will do what I want.
Thanks.