format java printing code
setup: install openjdk 6