Assignment 2: Java Translator Program Solution