Java string formartted
String str = String.format( "Hello \n World \n my name is %s and i'm %d years old" , "Paul", 27);
Pable Sorren
String str = String.format( "Hello \n World \n my name is %s and i'm %d years old" , "Paul", 27);
int someNumber = 42;
String someString = "foobar";
Object[] args = {new Long(someNumber), someString};
MessageFormat fmt = new MessageFormat("String is \"{1}\", number is {0}.");
System.out.println(fmt.format(args));