Results 1 to 2 of 2
Thread: Arraylist to chararray
- 12-19-2011, 11:11 AM #1
Member
- Join Date
- Dec 2011
- Posts
- 1
- Rep Power
- 0
Arraylist to chararray
Hello,
I have tried multiple ways to do this but I cannot figure it out.
I have a arraylist with each 'item' in the arraylist being a seperate string. What I want to do is to turn that arraylist into a 2-dimensional char array.
For example, the arraylist has these two strings in it:
qwerty
asdfgh
I want char[0][0] to be q; char[0][1] to be w; char[1][0] to be a; char[1][1] to be s;
Or something with similar results to that...
Anyone have any ideas?
Thanks,
Evan.
- 12-19-2011, 12:13 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,413
- Blog Entries
- 7
- Rep Power
- 17
Similar Threads
-
ArrayList copy some of the element from one arraylist tnto another arraylist
By ralf in forum New To JavaReplies: 12Last Post: 07-07-2011, 08:49 PM -
how to add Arraylist filter for a jsp page showing results from a servlet-Arraylist
By alok_sharma in forum Java ServletReplies: 7Last Post: 11-22-2010, 01:26 PM -
Change of index in charArray
By kovalensue in forum New To JavaReplies: 19Last Post: 11-10-2010, 11:34 AM -
Java Project Trouble: Searching one ArrayList with another ArrayList
By BC2210 in forum New To JavaReplies: 2Last Post: 04-21-2008, 11:43 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks