length method

int length()

Returns the total number of words in the list.

Implementation

int length() {
  return _idxToWords.length;
}