Reformat the ugly text block caused by lack of conciseness in Java