JavaのString.format内で%をエスケープ

知らなかったのでメモ。

String.format("%s%%", "test");

出力

test%

参考

stackoverflow.com