public String remainder(){
  StringBuilder accum=new StringBuilder();
  while (!isEmpty()) {
    accum.append(consume());
  }
  return accum.toString();
}

public String remainder ( ) { StringBuilder accum = new StringBuilder ( ) ; while ( ! isEmpty ( ) ) { accum . append ( consume ( ) ) ; } return accum . toString ( ) ; }
consume and return whatever is left on the queue .
