Results 1 to 1 of 1
-
Creating an ArrayList from an existing LinkedList
Creating an ArrayList from an existing LinkedList si done using the following constructor.
Following is an example:Java Code:ArrayList(Collection c) Constructs a list containing the elements of the specified collection, in the order they are returned by the collection's iterator.
Java Code:LinkedList ll = new LinkedList(); ll.add("ll1"); ll.addFirst("ll2"); ll.addLast("ll3"); ArrayList arrayList= new ArrayList(ll);
Similar Threads
-
Java Project Trouble: Searching one ArrayList with another ArrayList
By BC2210 in forum New To JavaReplies: 2Last Post: 04-21-2008, 11:43 AM -
Create a new directory in existing Zip archive
By satishbejgum in forum Advanced JavaReplies: 1Last Post: 12-23-2007, 06:05 AM -
Creating Array of LinkedList
By sasikumardr in forum New To JavaReplies: 1Last Post: 12-11-2007, 10:25 AM -
How to update Existing Word Doc Using java
By umashankar in forum Advanced JavaReplies: 1Last Post: 07-27-2007, 01:29 PM -
how to use LinkedList
By fred in forum Advanced JavaReplies: 1Last Post: 07-24-2007, 01:52 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks