[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: help with my String




RTFM re indexOf method in the String class. HTH.

> -----Original Message-----
> From: wsteele3@csc.com [mailto:wsteele3@csc.com]
> Sent: Friday, October 05, 2001 7:56 AM
> To: ajug-members@www.ajug.org
> Subject: help with my String
> 
> 
> I'm having a bit of a brain hiccup.  Does anybody know the 
> easiest way of
> checking a string value to see if it includes a certain pair 
> of characters.
> 
> ie.
> 
> Sting str = "H1#H2#H3#H4#H5#";
> //I want to check to see if the values, "H3" can be found within this
> string.
> 
> I didn't see a method for such an operation in the String 
> class.  Any ideas
> on an quick way to do this?
> 
> Thanks in advance.
> 
> Wade Steele
>