java - Interpolation Simulation (String Formating) -
java - Interpolation Simulation (String Formating) -
here's example:
int n1 = 20; int n2 = 40; string output = string.format("some guy **%d** years old while other **%d** ", n1, n2); system.out.println(output);
why not work?
i find works when i'm testing, , print belows:
guy 20 years old while other 40
java format
Comments
Post a Comment