Check out example codes for "string format java". It will help you in understanding the concepts better.

Code Example 1

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

Code Example 2

'%s %s' % ('one', 'two')

Code Example 3

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

Learn ReactJs, React Native from akashmittal.com