Snippets tagged “string-concatenation”
3 snippets use this tag.
- Java int to String - Integer.toString(i) vs new Integer(i).toString()Java
In Java, there are several ways to convert an int value to a String:
- String concatenation: concat() vs "+" operatorJava
In Java, you can use the concat() method of the java.lang.String class or the + operator to concatenate (join) two or more strings.
- StringBuilder vs String concatenation in toString() in JavaJava
In Java, you can use either a StringBuilder or string concatenation to create a string representation of an object.