Created
February 22, 2013 06:07
-
-
Save wfwei/5011101 to your computer and use it in GitHub Desktop.
import static ...
导入静态成员(变量或方法)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import static java.lang.Math.*; | |
import static java.lang.System.out; | |
public class StaticImport { | |
public static void main(String args[]){ | |
double r = cos(PI * theta); | |
out.println(r); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment