1: //TestStaticImports.java
2:
3: //Static imports
4: //import static java.lang.Math.*;
5: //import static java.lang.Math.pow;
6:
7: public class TestStaticImports
8: {
9: public static void main(String args[])
10: {
11: //Static imports
12: //The following statement works fine as is ...
13: //System.out.println(Math.pow(2, 3));
14: //But ... the next one needs one of the above "static imports"
15: //System.out.println(pow(2, 3));
16: }
17: }
18: