Forum Moderators: open

Message Too Old, No Replies

string class in java

         

manjumurthy

12:44 pm on Jun 7, 2001 (gmt 0)



hi,
i'm coding in java. i want to know if there is any method available to check if the entered string contains only characters or numerics.
is there any method available in java which is equivalent to isalpha() function in c

tedster

5:02 pm on Jun 7, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Java is a very weak suit for me. However, I found this page [knosof.co.uk] about re-using C code in Java which indicates that:
isalnum -> isLetterOrDigit

isalpha -> isLetter

Hope that helps.