how to append a string in java code example
Example 1: append a character to string java
1. String otherString = "helen" + character;
2. otherString += character;
Example 2: java concatenate strings
public class Concat {
String cat(String a, String b) {
a += b;
return a;
}
}