|
-
Dec 6th, 2004, 09:23 PM
#1
Thread Starter
Dazed Member
Re: Can this code be right?
-
Dec 7th, 2004, 04:23 AM
#2
Re: Can this code be right?
And you're sure you're compiling as 1.5?
javac -source 1.5 T.java
to be sure.
 Originally Posted by JDK 1.5 docs
The static import construct allows unqualified access to static members without inheriting from the type containing the static members. Instead, the program imports the members, either individually:
import static java.lang.Math.PI;
or en masse:
import static java.lang.Math.*;
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|