jdisa/tests/Test.java
author Markus Brökers <mbroeker@largo.homelinux.org>
Tue, 17 Aug 2010 18:57:57 +0200
changeset 139 cb1d3f4cf18e
parent 95 d2a071bd1a60
permissions -rw-r--r--
execve returns a value on error and this catches it

public class Test {
    public static void main (String args[]) {
        int i;
          try {
            i = Integer.parseInt (args[0]);
            System.out.printf ("%d%n", i + 5);
        } catch (Exception e) {
            e.printStackTrace ();
        }
    }
}