A Java Code