>I need to find out if the length of the integer (string) is less than 5 digits.
Um...
if ( s.length() >= 5 ) {
// Proceed
}
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
Hi,
I'm creating a palindrome program. So far, I got that part. Now, I need to find out if the length of the integer (string) is less than 5 digits. If the length is less than 5, then don't proceed with the program. Please give your suggestions. Thanks!
Come, come now webmasts, surely if you have already successfully created a palindrome program you should know how to get the length. ;) -Or is this a GUI problem?
Anyway if you have further problems post this in the java forum. :)
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439