I have a string which contains a indefinite/random spacing between words. ex. "IE Mozilla Apache Netscape" I want to convert into an even-spaced string - "IE Mozilla Apache Netscape" Can someone suggest a way to achieve this?
Joined: Oct 30, 2001
Create a regular expression to match any number of whitespace characters. Use String.replaceAll() to replace each occurrence of this with one space character. Job done.
Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.<br /> <br />#:^P