Example usage for java.lang System err

List of usage examples for java.lang System err

Introduction

In this page you can find the example usage for java.lang System err.

Prototype

PrintStream err

To view the source code for java.lang System err.

Click Source Link

Document

The "standard" error output stream.

Usage

From source file:Main.java

public static void main(String[] arg) {

    System.err.println("from java2s.com");
}

From source file:MainClass.java

public static void main(String[] args) {
    System.err.println("You have a runtime error.");

}

From source file:Run1.java

public static void main(String[] args) throws java.io.IOException {
    if (args.length != 1) {
        System.err.println("usage: java Run pathname");
        return;//from w w  w  . j a  v a 2  s.co  m
    }

    Process p = Runtime.getRuntime().exec(args[0]);

    try {
        System.out.println("Exit status = " + p.waitFor());
    } catch (InterruptedException e) {
    }
}

From source file:StringUtilsExampleV1.java

public static void main(String args[]) {
    System.err.println(StringUtils.chop("Dane"));
}

From source file:StringUtilsExampleV1.java

public static void main(String args[]) {

    System.err.println(StringUtils.countMatches("arthur", "r"));
}

From source file:StringUtilsExampleV1.java

public static void main(String args[]) {
    System.err.println(StringUtils.contains("Dorothy", "oro"));
}

From source file:StringUtilsExampleV1.java

public static void main(String args[]) {
    System.err.println(StringUtils.containsNone("r u m t", new char[] { 'r', 'o' }));
}

From source file:StringUtilsExampleV1.java

public static void main(String args[]) {

    System.err.println(StringUtils.chomp("temperature", "ure"));
}

From source file:StringUtilsExampleV1.java

public static void main(String args[]) {

    System.err.println(StringUtils.difference("govern", "government"));
}

From source file:StringUtilsExampleV1.java

public static void main(String args[]) {

    System.err.println(StringUtils.abbreviate("Take time off working", 0, 10));
}