Add lexer.java(with IO implemention for java)