tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernhard Wraase ...@netkosmos.de>
Subject Re: Replacing ALL Whitespace in string
Date Wed, 20 Dec 2000 08:53:17 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

Try it with the String Tokenizer
I think a much better place to post questions like this is i.e.
comp.lang.java.programmer
--
Bernhard Wraase



Mime
View raw message