add one character to string java
char ch='A';
String str="pple";
str= ch+str; // str will change to "Apple"
add one character to string java
char ch='A';
String str="pple";
str= ch+str; // str will change to "Apple"
append a character to string java
1. String otherString = "helen" + character;
2. otherString += character;
how to add a character to a string in java
// Define a character
char ch='A';
// Define a string
String str="pple";
str= ch+str; // str will change to "Apple"
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us