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) {

    int a = 5, b = 15, c = 255;

    System.out.printf("a = %d b = %x c = %o", a, b, c);

}

From source file:MainClass.java

public static void main(String args[]) {
    System.out.println(Character.isLetter('A'));
}

From source file:Main.java

public static void main(String... args) {
    System.out.println(ToolBar.NEW_WINDOW.getBtns());
    System.out.println(ToolBar.EDIT_WINDOW.getBtns());
    System.out.println(ToolBar.DELETE_WINDOW.getBtns());
}

From source file:MainClass.java

public static void main(String[] args) {
    System.out.println("3) PackageName of a string >>> " + ClassUtils.getPackageName("A String", "IfNull"));

}

From source file:Main.java

public static void main(String args[]) {
    int num = 2;
    int pow = 3;
    System.out.print(power(num, pow));
}

From source file:MainClass.java

public static void main(String[] args) {

    double x = 27.5, y = 33.75;

    System.out.printf("x = %15f y = %8g", x, y);

}

From source file:Main.java

public static void main(String[] args) {

    double d1 = 0.90, d2 = 5.00;

    System.out.println("arc cosine value of " + d1 + " = " + StrictMath.acos(d1));

    // returns NaN if argument is NaN or its absolute value is greater than 1
    System.out.println("arc cosine value of " + d2 + " = " + StrictMath.acos(d2));
}

From source file:MainClass.java

public static void main(String args[]) {
    System.out.println(Math.sqrt(10));
}

From source file:MainClass.java

public static void main(String[] args) {

    int a = 5, b = 15, c = 255;

    System.out.printf("a = %3$d b = %1$x c = %2$o", a, b, c);

}