Training Java program for Helli high school summer program [2014].