Prev Next

Java / Strings

How to perform String interpolation?

Java 5 or higher has String.format() method which supports String interpolation.

String completeString += String.format("str1=%s;str2=%s;str3=%s;str4=%s;", str1, str2, str3, str4);


More Related questions...

Show more question and Answers...


Comments & Discussions