push char one by one in a string in java code example
Example 1: add one character to string java
char ch='A';
String str="pple";
str= ch+str; // str will change to "Apple"
Example 2: append a character to string java
1. String otherString = "helen" + character;
2. otherString += character;