Using Static Import Declarations - Java Language Basics

Java examples for Language Basics:import

Description

Using Static Import Declarations

Demo Code

import static java.lang.System.out;

public class Main {  
  public static void main(String[] args) {
    out.println("Hello static import!");
  }//from www .j  av  a2  s.com
}

Result


Related Tutorials