PLEASE HELP - Does J2ME include java.lang.Math



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.
.



Relevant Pages

  • Re: PLEASE HELP - Does J2ME include java.lang.Math
    ... and the settings have CDLC 1.1. ... symbol: method log (int) ...
    (comp.lang.java.programmer)
  • Re: How can a user type in an int value?
    ... Do I need to import the parseInt method from somewhere? ... Faktoriel.java:16: cannot resolve symbol ... symbol: method parseInt ...
    (comp.lang.java.help)
  • Help with multiple file projects
    ... It consists of a class Point, then a class Polygon which uses the ... created by my instructor to make drawing to Graphics easier) ... Error messages: ... Polygon.java:19: cannot resolve symbol ...
    (comp.lang.java)
  • Help with multiple file projects
    ... It consists of a class Point, then a class Polygon which uses the ... created by my instructor to make drawing to Graphics easier) ... Error messages: ... Polygon.java:19: cannot resolve symbol ...
    (comp.lang.java.programmer)