15 months ago by Dan Gaston   115 • 1 • 8     3     What you need is a lexer/parser like LEX/YACC/ FLEX / Bison or javacc . here is a simple implementation using javacc: options { STATIC=false; } PARSER_BEGIN(Biostar10123) import java.util.*; @SuppressWarnings("unchecked") public class Biostar10123 { private