Java homeworks, spring 2014