add method

void add(
  1. String piece
)

Implementation

void add(String piece) {
  queue.addLast(piece);
  charLength += piece.length;
  endCursor += piece.length;
}