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

public static void main(String[] args) {

    System.out.println(File.separator);

}

From source file:MainClass.java

public static void main(String[] args) {
    int n = 1023;
    System.out.printf("Octal:                 %o\n", n);
}

From source file:Main.java

public static void main(String args[]) {
    double d = 3.14159D;
    System.out.print(d);//3.14159    
}

From source file:Main.java

public static void main(String[] argv) {
    char ch = '\'';

    System.out.println("ch is " + ch);//ch is '

}

From source file:MainClass.java

public static void main(String args[]) {
    int n = 170;/*from www  . j  a v  a  2  s  .  c  o  m*/

    System.out.println("Highest one bit: " + Integer.highestOneBit(n));
}

From source file:Main.java

public static void main(String[] argv) throws Exception {
    System.out.println(replace("this is a test", "is", "are"));
}

From source file:InterruptReset.java

public static void main(String[] args) {
    System.out.println("Thread.interrupted()=" + Thread.interrupted());
    Thread.currentThread().interrupt();
    System.out.println("Thread.interrupted()=" + Thread.interrupted());
    System.out.println("Thread.interrupted()=" + Thread.interrupted());
}

From source file:MainClass.java

public static void main(String[] arg) {
    byte b = 12;
    System.out.println(String.valueOf(b));

}

From source file:Main.java

public static void main(String[] args) {
    System.out.println(Instant.parse("2014-02-20T20:21:20.432Z"));
}

From source file:Main.java

public static void main(String[] args) {

    System.out.println(File.pathSeparatorChar);

}