Java practicum 3