Hızlı yanıt: kod örneği
You can also use the class which is mutable.It has the method , along with many other mutator methods.Just delete the characters that you need to delete and then get the result as follows:This avoids creation of unnecessary string objects.
StringBuilder
StringBuilder sb = new StringBuilder(inputString);
deleteCharAt()
String resultString = sb.toString();