jdisa/tests/Test.java
author Markus Bröker <mbroeker@largo.dyndns.tv>
Sun, 27 Sep 2009 10:56:49 +0200
changeset 107 244356bc3a20
parent 95 d2a071bd1a60
permissions -rw-r--r--
Pipes and COPY-ON-WRITE In this example, every forked process gets its own copy of the countervariable i through copy-on-write. committer: Markus Bröker <mbroeker@largo.homelinux.org>

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 ();
        }
    }
}