Example usage for java.lang System out

List of usage examples for java.lang System out

Introduction

In this page you can find the example usage for java.lang System out.

Prototype

PrintStream out

To view the source code for java.lang System out.

Click Source Link

Document

The "standard" output stream.

Usage

From source file:MainClass.java

public static void main(String args[]) {
    System.out.printf("%4d\n", 1);
    System.out.printf("%4d\n", 12);
    System.out.printf("%4d\n", 123);
    System.out.printf("%4d\n", 1234);
    System.out.printf("%4d\n\n", 12345); // data too large 

    System.out.printf("%4d\n", -1);
    System.out.printf("%4d\n", -12);
    System.out.printf("%4d\n", -123);
    System.out.printf("%4d\n", -1234); // data too large 
    System.out.printf("%4d\n", -12345); // data too large 
}

From source file:Main.java

public static void main(String arg[]) {
    System.out.println(new UUID(123456789L, 123456789L));
}

From source file:Main.java

public static void main(String[] args) throws Exception {

    System.out.println("finalization!");
    System.runFinalization();//w  w  w .  j  a v a  2  s .  com
    System.out.println("Done!");
}

From source file:Main.java

public static void main(String arg[]) throws Exception {
    System.out.println(encrypt("String"));
}

From source file:Main.java

public static void main(String arg[]) {
    System.out.println(UUID.randomUUID());
}

From source file:Main.java

public static void main(String args[]) {
    // ASCII bell
    System.out.print("\0007");
    System.out.flush();
}

From source file:Main.java

    public static void main(String args[]) {
  for (int n = 10; n > 0; n--)
    System.out.println("n:" + n);
}

From source file:Main.java

public static void main(String[] args) {

    byte b = 10;
    System.out.println("str:" + Byte.toString(b));

}

From source file:Main.java

public static void main(String[] args) {
    int i = 010;

    System.out.println(i);
}

From source file:Main.java

public static void main(String[] args) {
    float f = 12.3f;
    System.out.println("Value of float variable f is :" + f);
}