Java verwendet Variablen in Saiten
Java 15+
String foo = "foo";
String bar = "bar";
String str = "First %s, then %s".formatted(foo, bar);
aso
Java 15+
String foo = "foo";
String bar = "bar";
String str = "First %s, then %s".formatted(foo, bar);