Add formatting for java