Article View: borland.public.jbuilder.java.language
Article #7725Re: jave newbe question
From: John McGrath TeamB
Date: Sun, 20 May 2001 07:23
Date: Sun, 20 May 2001 07:23
20 lines
1381 bytes
1381 bytes
On Sat, 19 May 2001 15:27:16 -0500, Phil Barber wrote:
> import java.lang.Math.*;
You can import all of the classes in a package with a statement like:
import packagename.*;
But java.lang.Math is a class, not a package. You cannot import all of
the methods in a class. You must specify the class name when you call
the method, for example: Math.pow( ... );
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<MPG.1571123d9331529298a1f9@forums.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3b06d7ab_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,44c4d087f0b05f98 X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-05-20 00:39:08 PST From: John McGrath [TeamB] <ng-b@JPMcGrath.net> Newsgroups: borland.public.jbuilder.java.language Subject: Re: jave newbe question Date: Sun, 20 May 2001 03:23:25 -0400 Message-ID: <MPG.1571123d9331529298a1f9@forums.borland.com> References: <3b06d7ab_2@dnews> X-Newsreader: MicroPlanet Gravity v2.30 NNTP-Posting-Host: 209.92.40.60 X-Trace: dnews 990343403 209.92.40.60 (20 May 2001 00:23:23 -0700) Lines: 20 X-Authenticated-User: jpmcgrath Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews