delete method

String delete(
  1. String value,
  2. int offset,
  3. int length
)

Implementation

String delete(String value, int offset, int length) {
  return value.substring(0, offset) + value.substring(offset + length);
}