replace blank space
I want to replace a (' ' )blank value with 'OR'
I tried with str.replace(' ','OR')
its throwing me error like invalid character constant
we can use replace all but my websphere doesn't support jdk1.4
is there any other way to do that replacing thing
thanks in advance
yeah some one gave code which uses substring() replacing blankspace with 'OR'
but another porblem is if there is more than one blank space ,all spaces are replaced by 'OR'
how to avoid this
Thanks in advance
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL