Answers for "how to add a character to a string java"

6

how to add a character to a string java

char ch='A';
String str="pple";
str= ch+str;   // str will change to "Apple"
Posted by: Guest on May-09-2020

Code answers related to "how to add a character to a string java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language