NEW TO JAVA (2 DAYS)
NEED TO GET SIN (TRIG) OF ANGLE
WHAT DO I IMPORT?
ALEADY HAVE IMPORTED THE FALLOWING;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.MIDlet;
USING ME SDK 3.0
Printable View
NEW TO JAVA (2 DAYS)
NEED TO GET SIN (TRIG) OF ANGLE
WHAT DO I IMPORT?
ALEADY HAVE IMPORTED THE FALLOWING;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.MIDlet;
USING ME SDK 3.0
Nothing to import (part of java.lang)...see the Math class's sin,cos,etc...methods. Note they take angle's in radians
thanks,
will check it out
Still can not get it to work
I tried these,
double a;
double b;
b=33.5;
a=sin(b);
double b;
b=33.5;
double a=sin.class(b);
Could some please provide some code to do this so that I can get the hang of it
Thanks in advance
Clay
Please define what you mean...post an SSCCE (see my signature) that demonstrates input, what you expect, and what you get with all compile time and run time errors you receive.Quote:
can not get it to work