Implemented wait4(2) for Java.
Changed the Java version to use multithread.
Arranged the shortcuts.