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:Main2.java

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

From source file:Main.java

public static void main(String[] args) {
    System.out.println(Integer.toOctalString(7));
    System.out.println(Integer.toOctalString(8));
    System.out.println(Integer.toOctalString(9));
    System.out.println(Integer.toOctalString(10));
    System.out.println(Integer.toOctalString(100));
}

From source file:Main.java

public static void main(String[] args) {
    System.out.println(Main.class.getName());
    System.out.println(int[].class.getName());
    System.out.println(Main[].class.getName());
    System.out.println(Main.class.getPackage());
}

From source file:Main.java

public static void main(String[] args) {
    System.out.println(swapChars("abcde", 0, 1));
}

From source file:Main.java

public static void main(String[] args) {

    System.out.println(Math.floor(31.1));

}

From source file:MainClass.java

public static void main(String[] arg) {
    System.out.println(Integer.toBinaryString(100));

}

From source file:MainClass.java

public static void main(String[] arg) {
    System.out.println(Integer.valueOf("00900"));

}

From source file:MainClass.java

public static void main(String args[]) {
    System.out.printf("Default floating-point format: %f\n", 1234567.123);

}

From source file:MainClass.java

public static void main(String[] args) {
    System.out.printf("Decimal:               %f\n", Math.PI);
}

From source file:MainClass.java

public static void main(String[] args) {
    System.out.printf("Decimal/Scientific:    %g\n", Math.PI);
}