BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problems with import java.lang.Math;

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder JavaAPI
View previous topic :: View next topic  
Author Message
Alchemy
Guest





PostPosted: Fri Dec 19, 2003 10:14 pm    Post subject: Problems with import java.lang.Math; Reply with quote



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





PostPosted: Sat Dec 20, 2003 3:43 am    Post subject: Re: Problems with import java.lang.Math; Reply with quote



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





PostPosted: Mon Dec 22, 2003 8:35 am    Post subject: Re: Problems with import java.lang.Math; Reply with quote



"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder JavaAPI All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.