Results 1 to 4 of 4
- 03-23-2011, 09:09 AM #1
Member
- Join Date
- Mar 2011
- Posts
- 20
- Rep Power
- 0
- 03-23-2011, 09:14 AM #2
- Join Date
- Jan 2011
- Location
- Richmond, Virginia
- Posts
- 3,069
- Blog Entries
- 3
- Rep Power
- 7
There may be a method for it, check the list and arraylist API for a method that does it. If t doesn't exist you can easily do this by first creating an array of strings equal to the size of the arraylist, then loop through and add items to the array.
- 03-23-2011, 09:20 AM #3
Member
- Join Date
- Mar 2011
- Posts
- 20
- Rep Power
- 0
the toArray method requires an 'Object' . can i use this method with any modifications in it?
- 03-23-2011, 10:07 AM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,402
- Blog Entries
- 7
- Rep Power
- 17
When people rob a bank they get a penalty; when banks rob people they get a bonus.
Similar Threads
-
Converting an array program to ArrayList
By Adomini in forum New To JavaReplies: 4Last Post: 10-13-2010, 07:22 PM -
Converting ArrayList to Array
By vasavi.singh in forum New To JavaReplies: 1Last Post: 02-23-2009, 02:34 PM -
Converting a String into a array.
By taraxgoesxboom in forum New To JavaReplies: 12Last Post: 02-22-2009, 05:29 AM -
Converting ArrayList to Array
By Java Tip in forum Java TipReplies: 0Last Post: 11-13-2007, 10:41 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks