How to delete a character in a String
Because Strings in Java are immutable. You'll have to create a new string removing the character you don't want.
String newstr = str.substring(0, idx) + str.substring(idx + 1);
public String removeChar(String str, Integer n) {
String front = str.substring(0, n);
String back = str.substring(n+1, str.length());