wood burning stoves 2.0*
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


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.
 
GeeCON Prague 2014
 
subject: Collections Query