Article View: borland.public.jbuilder.java.api
Article #435Re: Problems with import java.lang.Math;
From: Tor Iver Wilhelmsen (TeamB)
Date: Mon, 22 Dec 2003 08:35
Date: Mon, 22 Dec 2003 08:35
8 lines
1201 bytes
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.
Technical Details
Message-ID:
<usmjd9rnl.fsf@ergo.no>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3fe37849@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,d101e71ba84251c0 X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2003-12-22 00:39:17 PST Sender: towi@SDSA3850 Newsgroups: borland.public.jbuilder.java.api Subject: Re: Problems with import java.lang.Math; References: <3fe37849@newsgroups.borland.com> From: tor.wilhelmsen@ergo.no (Tor Iver Wilhelmsen (TeamB)) Date: 22 Dec 2003 09:35:10 +0100 Message-ID: <usmjd9rnl.fsf@ergo.no> Lines: 8 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 139.105.7.229 X-Trace: newsgroups.borland.com 1072082109 139.105.7.229 (22 Dec 2003 00:35:09 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail