Create Lexer.java

This is code to create lexer. It creates the tokens from the character strings.