Any method similar to sprintf in Java?

user496949 picture user496949 · Mar 9, 2011 · Viewed 12.1k times · Source

Any similar method to sprintf in Java?

Answer

GustyWind picture GustyWind · Mar 9, 2011

In a way the String.format is like having a Java sprintf method available here

String status = String.format("The rename status is (%d)", RENAME_SUCCEEDED);

You can see the example here as well