Developing a language translator application in Java