Posted By:
Christopher_Schultz
Posted On:
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;
System.err.println(d.length());
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,
-chris