Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
12-06-2007, 08:09 AM #1
- Join Date
- Nov 2007
- Thanked 0 Times in 0 Posts
Converting a Arraylist to a 2-D array
I have an arraylist as below:
ArrayList listArray = new ArrayList(); listArray.add("Germany"); listArray.add("Holland"); listArray.add("Sweden"); listArray.add("India");
How can i add the list items to a 2-D array in above manner.
The toArray method returns single dimension array.
Thanks in advance.
12-06-2007, 02:36 PM #2
theres no predefined API call to do this...so, u'll have to write ur own
You never have to change anything you got up in the middle of the night to write. -- Saul Bellow