I know how to access a certain string spot using a for loop and doing string.substring(i), but I do not know to remove or add letters/numbers.
String.substring(i).replace("x", "");
public static String replace(String s) {
for (int i=0; i<s.length(); i++) {
if (s.substring(i) == ... ) {
//more code
}
}
}
When I run this code, it still prints the original String.