Tuesday, January 22, 2002 10:35 AM
You'll get this weird error (I say weird because usually Java-type-people don't think about dereferencing stuff) if you put a dot after a primitive:
double d = 3.141592654288;
This will give you a compiler error. If you want to use a
Double object, then use the
java.lang.Double class, which has methods and everything. My guess is that you are calling a method on a primitive that you thought was an object.
Check your code, and it'll probably jump right out at you.
Hope that helps,