Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java best way to concatenate strings

// StringBuilder
String stringBuilderConcat = new StringBuilder()
    .append(greeting)
    .append(" ")
    .append(person)
    .append("! Welcome to the ")
    .append(location)
    .append("!")
    .build();
Source by www.javatpoint.com #
 
PREVIOUS NEXT
Tagged: #java #concatenate #strings
ADD COMMENT
Topic
Name
1+3 =