C
cpptutor2000
I am trying to make a simple J2ME application that would do some
manipulation with trigonometric functions on floating point data, on a
handheld device. For prototyping purposes, I am using Sun
Microsystems' WTK 2.2, and the settings have CDLC 1.1. My source file
has the import:
import java.lang.Math;
However, I get error messages as:
Building "Test"
C:\WTK22\apps\Test\src\TestUtility.java:58: cannot resolve symbol
symbol : variable nu
location: class RecordUtility
for (int i = 1; i <= nu; i++)
^
C:\WTK22\apps\Test\src\TestUtility.java:70: cannot resolve symbol
symbol : method log (int)
location: class java.lang.Math
int nu = (int)(Math.log(n)/Math.log(2));
^
C:\WTK22\apps\Test\src\TestUtility.java:70: cannot resolve symbol
symbol : method log (int)
location: class java.lang.Math
int nu = (int)(Math.log(n)/Math.log(2));
^
3 errors
com.sun.kvem.ktools.ExecutionException
Build failed
I tried casting n as n11 = (double)n and then using this value, but it
has not helped.
Could some Java guru please suggest what a suitable solution might
be ? Any hints/suggestions would be greatly appreciated - thanks in
advance for your help.
manipulation with trigonometric functions on floating point data, on a
handheld device. For prototyping purposes, I am using Sun
Microsystems' WTK 2.2, and the settings have CDLC 1.1. My source file
has the import:
import java.lang.Math;
However, I get error messages as:
Building "Test"
C:\WTK22\apps\Test\src\TestUtility.java:58: cannot resolve symbol
symbol : variable nu
location: class RecordUtility
for (int i = 1; i <= nu; i++)
^
C:\WTK22\apps\Test\src\TestUtility.java:70: cannot resolve symbol
symbol : method log (int)
location: class java.lang.Math
int nu = (int)(Math.log(n)/Math.log(2));
^
C:\WTK22\apps\Test\src\TestUtility.java:70: cannot resolve symbol
symbol : method log (int)
location: class java.lang.Math
int nu = (int)(Math.log(n)/Math.log(2));
^
3 errors
com.sun.kvem.ktools.ExecutionException
Build failed
I tried casting n as n11 = (double)n and then using this value, but it
has not helped.
Could some Java guru please suggest what a suitable solution might
be ? Any hints/suggestions would be greatly appreciated - thanks in
advance for your help.