prettify java samples