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[]) {
    String str = "this is a test";
    System.out.println(removeCharAt(str, 3));
}

From source file:Main.java

public static void main(String[] args) {

    int i1 = 12, i2 = -34;

    System.out.println("absolute value of " + i1 + " = " + StrictMath.abs(i1));

    System.out.println("absolute value of " + i2 + " = " + StrictMath.abs(i2));
}

From source file:Main.java

public static void main(String[] args) {
    String text = "a b c e a b";

    System.out.println(text.replaceAll("(?:a b)+", "x y"));

}

From source file:Main.java

public static void main(String[] args) {

    System.out.println(GraphicsEnvironment.getLocalGraphicsEnvironment().isHeadlessInstance());

}

From source file:Main.java

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

From source file:Main.java

public static void main(String[] args) {
    Long long2 = new Long("12346");

    System.out.println(long2);
}

From source file:Main.java

public static void main(String[] args) {
    String a = "this is a test";
    System.out.println("Input String is  :\n" + a);

    String b = a.replaceAll("\\s+", "");
    System.out.println("\nOutput String is  :\n" + b);
}

From source file:Main.java

public static void main(String args[]) {
    String strOb1 = "java2s.com";

    System.out.println("Char at index 3 in strOb1: " + strOb1.charAt(3));

}

From source file:MyPack.Main.java

public static void main(String args[]) {
    System.out.println(new Date());
}

From source file:Main.java

public static void main(String[] args) {
    System.out.println("Total is: " + Dice.rollDice(3, 6));
}