format java code with google-java-format — google or aosp style
Java formatter runs your code through google-java-format on our servers — the same formatter used by Google, the Android Open Source Project, and most major Java projects. Choose Google style (2-space indent, strict column limit) or AOSP style (4-space indent, wider lines). The output is syntax-highlighted so you can review it before copying back.