File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
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.
subject: Is there a way to ask if a string only 1 character (any 1 character)
How to replace apostophes?
what is the meaning of below regular expression
convert a string into character array
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014