I need a method to replace more than one character.
Example:
String test = "I need help";
test.<method name>("help", "a function");
returns = "I need a function."
The method replace(), is used do replace a character to another character.
I need replace a string to another string.
Thanks
----- Original Message -----
From: "Dennis Huang" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 29, 2000 4:38 PM
Subject: Re: Replace
> You can use String.replace(oldChar, newChar).
>
> Dennis
>
> -----Original Message-----
> From: Liart Junior [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 30 May 2000 12:56
> To: [EMAIL PROTECTED]
> Subject: Replace
>
>
> I would like to know if someone has a function that I manage to replace a
> string for other string.
> With replace(), I with himself just change a caracter for other. I need
> replace " ' " for " ' ' ".
>
> Thank's
>
> Liart Martins
>
> Web Developer
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets