try Str.trim();

-----Original Message-----
From: sumit shah [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 21, 2000 10:59 AM
To: [EMAIL PROTECTED]
Subject: Replace " "


hi,
  is there any method of the String class which will allow me to get rid of
the blank spaces in a string.
  i tried Str.replace(' ', '') but jvm does not agree with the 2nd argument
saying incompatible type. Is there any direct method other than breaking the
string into substring and then concat() it. or if something that i can put
instead of ''.

thanks,
sumit.
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.

===========================================================================
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

Reply via email to