The MessageFormat
class looks like what you’re after.
System.out.println(MessageFormat.format("{0} + {1} = {2}", x, y, x + y));
The MessageFormat
class looks like what you’re after.
System.out.println(MessageFormat.format("{0} + {1} = {2}", x, y, x + y));