> Hi All,
>
[quoted text clipped - 7 lines]
> symbol : method sin(int)
> location: class java.lang.Math
You may, as a beginner, post these questions to c.l.j.help and not
c.l.j.programmer newsgroup.
You mean you call it like this
double doubleValue = Math.sin( 1 );
Its saying that it can not find the class java.lang.Math
If on windows, did you add Java Home install directory to your class path..

Signature
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Nigel Wade - 02 Dec 2005 15:43 GMT
>> Hi All,
>>
[quoted text clipped - 16 lines]
>
> Its saying that it can not find the class java.lang.Math
Actually, it's not.
It's saying that it's found Math in java.lang.Math, but it can't find a method
called "sin" which takes an int as it's argument. This is to be expected
because there isn't one - the only method "sin" in the java.lang.Math API takes
a double.

Signature
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
klynn47@comcast.net - 02 Dec 2005 16:46 GMT
1, being an int, should be automatically promoted to a double. This
program works fine in 1.4.1_02
public class Test1 {
public static void main(String[] args) {
System.out.println(Math.sin(1));
}
}
Could you show the full code?
>When I call:
>
>Math.sin( 1 )
>
>it failed..
First, Math.sin wants a number in radians. It also wants a double. I
am puzzled though why the compiler was unwilling to promote an int to
a double automatically.
Show us you exact code.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.