string format %d %s code example
Example: formartted string java
String str = String.format( "Hello \n World \n my name is %s and i'm %d years old" , "Paul", 27);
String str = String.format( "Hello \n World \n my name is %s and i'm %d years old" , "Paul", 27);