Skip to content

Instantly share code, notes, and snippets.

@wfwei
Created February 22, 2013 06:07
Show Gist options
  • Save wfwei/5011101 to your computer and use it in GitHub Desktop.
Save wfwei/5011101 to your computer and use it in GitHub Desktop.
import static ... 导入静态成员(变量或方法)
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