tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Franz <mfr...@praja.com>
Subject Replacing ALL Whitespace in string
Date Tue, 19 Dec 2000 21:06:13 GMT
I am trying to replace ALL the Whitespace in a string.  If I do this;
 
String newcat = newcat1.replace(' ','');
 
I get this error;
 
100. String newcat = newcat1.replace(' ','');
                                                    <>
*** Lexical Error: Empty character constant

 
My newcat string might look like this;
 
ROOT/cat Tree/The Next/Path To/Victory Garden
 

Mark G. Franz 

 

Mime
View raw message