Search notes:

Java class java.lang.String - format

public class format {

  public static void main(String[] argv) {

    String res = String.format(
          "The string is >%s<, the number is %d, the float is %f.",
          "hello world",
           42,
          -18.29
    );

    System.out.println(res);

  }


}
Github repository JavaClasses, path: /java/lang/String/format.java

See also

Java classes

Index