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[] arg) {
    float f = 12.13145F;
    System.out.println(String.valueOf(f));

}

From source file:Main.java

public static void main(String[] argv) {
    String str = "Java2s.Com";
    System.out.println(str.toUpperCase());

}

From source file:Main.java

public static void main(String args[]) {
    char characterValue = 'Z';
    System.out.printf("char = %s\n", String.valueOf(characterValue));

}

From source file:MainClass.java

public static void main(String args[]) {

    System.out.println(Character.isWhitespace('a'));
}

From source file:Main.java

public static void main(String args[]) {

    int days[] = { 1, 2, 3, };
    System.out.println("days[2] is " + days[10]);
}

From source file:Main.java

public static void main(String args[]) {
    int n = 170; // 10101010

    System.out.println("Value in binary: 10101010");
    System.out.println("Number of trailing zeros : " + Integer.numberOfTrailingZeros(n));
}

From source file:PrintfExamples.java

public static void main(String[] args) {
    System.out.printf(Locale.ITALIAN, "value: %f\n", 3.14);
}

From source file:Main.java

public static void main(String[] args) {
    String message = "qwer";
    System.out.print(message);

}

From source file:Main.java

public static void main(String args[]) {
    int n = 170; // 10101010

    System.out.println(Integer.reverseBytes(n));

}

From source file:MainClass.java

public static void main(String[] arg) {
    double f = 12.13145D;
    System.out.println(String.valueOf(f));

}