A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Is there a way to ask if a string only 1 character (any 1 character)
Joined: May 26, 2010
Jul 28, 2010 06:16:46
basically i need to search to check if an everchanging
contains more than one character, not a specific one but any SINGLE character in general.
This is as im attempting to return a word value and am getting the odd single character returned occasionally.
Its just a bit more error trapping.
Joined: Oct 13, 2005
Jul 28, 2010 06:59:27
Yes. Go through the String API and there are methods telling you how many characters there are.
I agree. Here's the link:
subject: Is there a way to ask if a string only 1 character (any 1 character)
How to replace apostophes?
convert a string into character array
what is the meaning of below regular expression
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015