I don't know what its called but it is useful
Code:
Console.WriteLine("Converted the {0} value '{1}' to the {2} value {3}.", str1, str2, str3, strx)
Code:
Console.WriteLine("Converted the {0} value '{1}' to the {2} value {3}.", str1, str2, str3, strx)
Code:
Dim miscInfo As String = [String].Format("Your dog has {0} fleas. " + "It is time to get a flea collar. " + "The current universal date is: {1:u}.", numberOfFleas, DateTime.Now)
Code:
Dim miscInfo As String = [String].Format("test{0} and {1}", 2 + 4, 5 * 8)
Code:
package PL;
import java.util.Scanner;
import static java.lang.System.out;
public class test2 {
public static void main(String[] args) {
// TODO Auto-generated method stub
String s1 = String.format("hi %s %s welcome %d", "king","moti",5);
System.out.println(s1);
}
}