java practice on 21-07-2014 class