Two Laptop Bag*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Comparable interface problem. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Comparable interface problem." Watch "Comparable interface problem." New topic
Author

Comparable interface problem.

amit mandal
Ranch Hand

Joined: Aug 13, 2010
Posts: 46

i wrote a small code to use the Comparable interface but am getting an error..please someone tell me where i went wrong.


i dont understand why the jvm isnt able to find the DvDinfo class?


ocpjp 6.0 certified.
Abimaran Kugathasan
Ranch Hand

Joined: Nov 04, 2009
Posts: 2066

Check the code again there are two DVDinfo class definitions! And UseCodeTags when you post codes!


|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
amit mandal
Ranch Hand

Joined: Aug 13, 2010
Posts: 46

Abimaran Kugathasan wrote:Check the code again there are two DVDinfo class definitions! And UseCodeTags when you post codes!

Sorry...this was my second post here i understood my mistake in naming the classes :
thanks for helping
Abimaran Kugathasan
Ranch Hand

Joined: Nov 04, 2009
Posts: 2066

So, did you solve the problem?
amit mandal
Ranch Hand

Joined: Aug 13, 2010
Posts: 46

Absolutely, the problem is solved generics and collections are heck of a topic so i have to move slowly and in future i will be posting even more queries thanks again for helping. Have a nice day
Abimaran Kugathasan
Ranch Hand

Joined: Nov 04, 2009
Posts: 2066

You are Welcome!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Comparable interface problem.