Java String.Format Usage Code Example

Snippet 1
  String str = String.format( "Hello \n World \n my name is %s and i'm %d years old" , "Paul", 27); 
Snippet 2
  '%s %s' % ('one', 'two')