Revert "final try of code of java"

This reverts commit ae65198a33df8494e10003dcc273d62490ab1a75.