java program for memorizing chem stuff