Prettified java examples in readme.md