Rewrite Java guide