charCount method

int charCount()

Returns the total number of characters in the string.

Implementation

int charCount() {
  return length;
}