removeLastChar method

String removeLastChar()

Implementation

String removeLastChar() {
  return this.substring(0, this.length - 1);
}