jQuery in Action, 2nd edition*
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 Murach's Java Servlets and JSP this week in the Servlets 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?