It's really on the task list? :) Hadn't noticed it. Which task list?

Not sure what it's meant to be. Either seems quite easy as they'd either be:

ArrayUtils.reverse(StringUtils.split(string,string)) or
StringUtils.split( StringUtils.reverse(string), string))

The latter might be slightly off and instead need a loop, not sure how
well the delimiters would work.

The former seems the only one with an obvious use-case (reversing a
DNS name/IP address), and it'd only be replacing two method calls with
one, so seems overkill.

Sorry for the negative reply,

Hen

On Wed, 26 Jan 2005 15:47:55 -0800, Hasan Diwan <[EMAIL PROTECTED]> wrote:
> I noticed this method on the task list, so I've started implementing
> it. I have a few questions:
> 1. Should it allow for nulls as the input string?
> 2. Is null a permissible delimiter?
> 3. If the string is "mary had a little lamb" and reverseSplit is applied to 
> it:
> a. if reverse is applied first, we get back "bmal elttil a dah yram",
> splitting this using " " as the delimiter, the first String of the
> resulting array is "bmal"....
> b. If split is applied first, {"mary", "had", "a", "little", "lamb"},
> and reverse yields "lamb"
> Is 3a or 3b the correct behaviour?
> Thanks in advance for the help!
> --
> Cheers,
> Hasan Diwan <[EMAIL PROTECTED]>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to