🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.api
3 messages
3 total messages Started by Alchemy Fri, 19 Dec 2003 22:14
Problems with import java.lang.Math;
#433
Author: Alchemy
Date: Fri, 19 Dec 2003 22:14
6 lines
1129 bytes
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
Re: Problems with import java.lang.Math;
#434
Author: Owen Green
Date: Sat, 20 Dec 2003 03:43
10 lines
1186 bytes
On Fri, 19 Dec 2003 23:14:33 +0100, Alchemy wrote:

> 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
Re: Problems with import java.lang.Math;
#435
Author: Tor Iver Wilhelmsen (TeamB)
Date: Mon, 22 Dec 2003 08:35
8 lines
1201 bytes
"Alchemy" <alkemist_111@comhem.se> writes:

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

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads