Simple Java string template example

String template = "Hello, %s!";
String.format(template, "myName");
usage:

public static String format(String format, Object... args)
public static String format(Locale l,String format,Object... args)


Comments

Popular posts from this blog

Check MySQL query history from command line