Results 1 to 1 of 1
Thread: nasty errors in your code
- 01-27-2011, 04:18 PM #1
nasty errors in your code
i spend about one hour to find this nasty error. i was checking some methods of the class Collections, but using sort() with my own object i always got a ClassCastExeception and i couldn't find out why: my object Car was properly implementing the comparable interface. but then i saw a strange looking import statement in my code and it dawns on me: my current example used the class Car that i had implemented in a previous example with Arrays stored in an other package, that has no comparable interface implemented. shame on me :o. can you report about similar (silly) situations as a java programmer?
Similar Threads
-
Beginner - can't get through, mind looking at code and errors?
By hayden06f4i in forum New To JavaReplies: 8Last Post: 11-05-2010, 01:52 PM -
Errors in the code (?)
By AndersBjörnör in forum New To JavaReplies: 1Last Post: 10-09-2009, 03:06 PM -
hi,can anyone help with the following code,i could not complie because its got errors
By omutaoka in forum New To JavaReplies: 3Last Post: 03-03-2009, 09:48 PM -
HELP ON errors occuring in the code
By jaiminparikh in forum Advanced JavaReplies: 6Last Post: 02-12-2009, 02:02 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks