Java task