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

    Byte byteObject = new Byte("100");
    System.out.println(byteObject);

}

From source file:Tutorial.java

public static void main(String args[]) {

    System.out.println("Programming in " + Tutorial.C.toString());
    System.out.println("Programming in " + Tutorial.Java.toString());
    System.out.println("Programming in " + Tutorial.PHP.toString());
}

From source file:Main.java

public static void main(String[] args) {
    double d1 = 3, d2 = 4, d3 = 6;

    System.out.println("hypotenuse value of  d1 and d2 = " + StrictMath.hypot(d1, d2));

    System.out.println("hypotenuse value of d2 and d3 = " + StrictMath.hypot(d2, d3));
}

From source file:Main.java

public static void main(String[] args) {
    // returns square root of 9, i.e. 3
    System.out.println(Math.sqrt(9));
    // returns square root of 25.5
    System.out.println(Math.sqrt(25.5));
}

From source file:Main.java

public static void main(String[] args) {

    double d = 5.0;
    d *= 4.0;//  w  ww  .jav  a  2 s  .  c  om
    System.out.println("d = " + d);
    System.out.println("Ternary: " + (d == 5 ? "yes" : "no"));
}

From source file:Main.java

public static void main(String args[]) {

    String str = "This is a test.";

    System.out.println(str.replaceAll("is", "are"));
}

From source file:Main.java

public static void main(String args[]) {
    // Remove all \n with empty string
    System.out.println("\r\n\t\b".replaceAll("\n", ""));

    // Replace \n by \r
    System.out.println("\r\n\t\b".replaceAll("\n", "\r"));
}

From source file:Main.java

public static void main(String args[]) {

    String str = "This is a test.";

    System.out.println(str.replace('T', 'A'));
}

From source file:MainClass.java

public static void main(String[] args) {
    System.out.println("5) Every Object is an String = " + ClassUtils.isAssignable(Object.class, String.class));
}

From source file:Main.java

public static void main(String[] args) {

    Integer intObject = new Integer(999);
    System.out.println(intObject.hashCode());
}