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

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -