Just a quick question.  Do you know what the character is that you need
to replace?  Will it always be the same character, like a single
quote?  Do you really care where in the string it is?

----- Original Message -----
From: "Ramesh, Kesav" <[EMAIL PROTECTED]>
Date: Wednesday, January 10, 2001 9:04 pm
Subject: Re: How can I search for a substring in a StringBuffer object
and the replace it?

> you have to convert it into a string and then do the stuffs. as
> far as
> reversing is concerned you can directly give reverse() if you have
> jdk1.2but for lower versions use setCharAt() method.
>
>
>
> Regards
>
> Ramesh Kesavanarayanan
>
> Electronic Data Systems
> Steeple Reach,
> 25, Cathedral Road,
>
>  91-44-811 3801 to 15 ext :2186
>  91-44-233 0380 (res)
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
>
>
>
> -----Original Message-----
> From: Valderrama, Eric [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 11, 2001 3:06 AM
> To: [EMAIL PROTECTED]
> Subject: How can I search for a substring in a StringBuffer object and
> the replace it?
>
>
> Hi,
>
> Please correct me if I'm wrong but there's not a method in
> StringBufferclass to search a substring in a StringBuffer variable
> and then to get the
> index or the position where the substring is.
> How can I do that?
>
> I tried to use indexOf() method but it didn't work because it
> belongs to
> String class.
>
> I hope you can help me
> Thanks
>
> -Eric.-
>
>
________________________________________________________________________
___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in
> the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http:
> Resources: http://java.sun.com/products/servlet/external-
> resources.htmlLISTSERV Help:
> http://www.lsoft.com/manuals/user/user.html
>
________________________________________________________________________
___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in
> the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http:
> Resources: http://java.sun.com/products/servlet/external-
> resources.htmlLISTSERV Help:
> http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to