This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Collections Query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Collections Query" Watch "Collections Query" New topic
Author

Collections Query

narain ashwin
Ranch Hand

Joined: Dec 27, 2007
Posts: 48
I am not able to instantiate a TreeSet passing a List to the constructor like below


whereas the documentation here allows the TreeSet to take a collection.


I drink two cappuccinos a day.Is that of any help to solve java problems??
JBoss 6 - Admin console Username/pwd: admin/admin
narain ashwin
Ranch Hand

Joined: Dec 27, 2007
Posts: 48
My Bad...my class name matches the API classname ....Fixed it!!Closing the thread now.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Collections Query
 
Similar Threads
Help me solve a puzzle on datastructures
NullpointerException in ArrayList,Vector,LinkedList
can't understand the output
sending a Collection from JSP to Servlet
can arraylist elements replaced?