pub some code in Java