Java Programming Class Array Recursion Assignment