| View previous topic :: View next topic |
| Author |
Message |
Alchemy Guest
|
Posted: Fri Dec 19, 2003 10:14 pm Post subject: Problems with import java.lang.Math; |
|
|
Have Import the class but get error cant resolve method sqrt.
Verry ThankFull For Tipps Or AdVice
Sincerely
Urban Avierfjärd(Alchemy)
Visby,Gotland,Sweden
http://w1.201.comhem.se/~u20100003
|
|
| Back to top |
|
 |
Owen Green Guest
|
Posted: Sat Dec 20, 2003 3:43 am Post subject: Re: Problems with import java.lang.Math; |
|
|
On Fri, 19 Dec 2003 23:14:33 +0100, Alchemy wrote:
| Quote: | Have Import the class but get error cant resolve method sqrt.
Verry ThankFull For Tipps Or AdVice
|
Can you post your code and the exact text of whatever error message / stack
trace you're getting?
--
Owen
|
|
| Back to top |
|
 |
Tor Iver Wilhelmsen Guest
|
Posted: Mon Dec 22, 2003 8:35 am Post subject: Re: Problems with import java.lang.Math; |
|
|
"Alchemy" <alkemist_111 (AT) comhem (DOT) se> writes:
| Quote: | Have Import the class but get error cant resolve method sqrt.
Verry ThankFull For Tipps Or AdVice
|
Before JRE 1.5 is out you need to use the class name for static
methods, e.g. Math.sqrt(). With 1.5 you can use "static import" where
the method names themselves are imported into your class' namespace.
|
|
| Back to top |
|
 |
|