how to replace all of one character with nothing in java
String meal = "Hambbburger";
String replaced = meal.replaceAll("b","");
how to replace all of one character with nothing in java
String meal = "Hambbburger";
String replaced = meal.replaceAll("b","");
replace character in string java
String str = "..............................";
int index = 5;
char ch = '|';
StringBuilder string = new StringBuilder(str);
string.setCharAt(index, ch);
System.out.println(string);
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