Created
April 29, 2019 12:52
Demonstrate Explicit StringBuilder Usage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dustin.examples; | |
import static java.lang.System.out; | |
public class HelloWorldStringBuilder | |
{ | |
public static void main(final String[] arguments) | |
{ | |
out.println(new StringBuilder().append("Hello, ").append(arguments[0]).toString()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Featured in "JDK 9/JEP 280: String Concatenations Will Never Be the Same" blog post on the "Inspired by Actual Events" blog.