Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は同等のものを書こうとしています
System.out.println(a + " % " + b + " = " + r);
プリント付き(f)
System.out.printf("%d +'%' + %d = %d",a,b,r);
しかし、フォーマット文字列の形式が正しくありません。%記号が原因だと思います。これを回避する方法はありますか?