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
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
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
Last edited by CLAYAROBINSON; June 2nd, 2011 at 08:30 PM.
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
Last edited by CLAYAROBINSON; June 2nd, 2011 at 10:49 PM.
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.can not get it to work