My Java homeworks for 2 semester