Static imports in java
1783
13-Jul-2015
What is static imports? Why it is used,what are advantages and disadvantages.
Anonymous User
13-Jul-2015public class HelloWorld {public static void main(String[] args) {
System.out.println("Hello World!");
System.out.println("Considering a circle with a diameter of 5 cm, it has:");
System.out.println("A circumference of " + (Math.PI * 5) + " cm");
System.out.println("And an area of " + (Math.PI * Math.pow(2.5,2)) + " sq. cm");
}
}