Revert "Update JavaApplication2.java"

This reverts commit cb699168d46fa51fb06163c35eee5fa0b1fe9f2d.