My java homeworks