ProAnswers.org

How to use java.lang.System class?

The System class is a final class that exposes useful static fields. The static methods can help you with common tasks.

The out field represents the standard output stream which by default is the same console.

 

public class MainClass {

 

  public static void main(String[] args) {

    String message = "qwer";

    System.out.print(message);

 

  }

 

}