public boolean matchChomp(String seq){
  if (matches(seq)) {
    pos+=seq.length();
    return true;
  }
 else {
    return false;
  }
}

public boolean matchChomp ( String seq ) { if ( matches ( seq ) ) { pos += seq . length ( ) ; return true ; } else { return false ; } }
tests if the queue matches the sequence ( as with match ) , and if they do , removes the matched string from the queue .
