Results 1 to 7 of 7

Thread: Can this code be right?

Hybrid View

  1. #1

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    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.

    Quote 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
  •  



Click Here to Expand Forum to Full Width