On Mon, May 13, 2002 at 03:27:38PM +0200, Stephen McConnell wrote:
> 
> 
> Zutt... JDK 1.4 method.
> Van anyone give the the 1.2 equivilent ?

java.lang.String's:

String replace(char oldChar, char newChar);

'cept if you want more than one char replacement you have to roll your
own method.

--Jeff

> Steve.
> 
> 
> 
> Peter Donald wrote:
> 
> >   [javac] 
> >   
>/home/rubys/jakarta/jakarta-avalon-excalibur/merlin/src/java/org/apache/excalibur/merlin/ServiceFactory.java:353:
> cannot resolve symbol
> >   [javac] symbol  : method replaceAll  (java.lang.String,java.lang.String)
> >   [javac] location: class java.lang.String
> >   [javac]         Logger base = logger.getChildLogger( 
> >   role.replaceAll(".","-") );
> >   [javac]                                                  ^
> >   [javac] 1 error

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

Reply via email to