diff --git a/guide/english/java/strings/index.md b/guide/english/java/strings/index.md index 7d9e5f9d70..b436c75959 100644 --- a/guide/english/java/strings/index.md +++ b/guide/english/java/strings/index.md @@ -69,6 +69,10 @@ public class StringExample{ } } ``` +If you want to print a string with values in Java it is better to use the following: + System.out.printf("example text with %s",value); //where value is a parameter + +This uses the StringBuilder Class wich is more efficient for memory. Output: ```