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.2
but 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 StringBuffer
class 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://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

___________________________________________________________________________
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