I have a template string
str = "Hello %s, your name is %s, %s 's born in 1990."
I want to format this string, as below: Hello Mr.P, your name is Mr.P, Mr.P 's born in 1990.
I can do the following below:
String.format(str, "Mr.P","Mr.P","Mr.P");
to produce the above. Is there any other way to format the string without repeating same value n
number of times as parameters