interpreter in java with example