The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
November 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Maybe I'm still doing something wrong, here:

Posted by Eduardo on November 07, 2001 at 9:03 AM

Thank you for your reply... but it still doesn't accept it. This thing is driving me crazy!

>public class LongComparator implements Comparator{
public int compare(Object o1, Object o2) {
// long ss1 = longValue(o1);
// long ss2 = longValue(o2);
return longValue(o1).compareTo(longValue(o2));
}
} ///:~

symbol : method longValue (java.lang.Object)
location: class GreenhouseControls.LongComparator
return longValue(o1).compareTo(longValue(o2));
^
C:\jdk1.3.1_01\Greenhouse\GreenhouseControls.java:238: cannot resolve symbol
symbol : method longValue (java.lang.Object)
location: class GreenhouseControls.LongComparator
return longValue(o1).compareTo(longValue(o2));
^
2 errors

Process completed.





Replies:
  • I soved!! Eduardo November 07, 2001 at 12:58 PM (0)

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us