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