Java first task