Testing of a String.|String methods|
A string may contain digit, alphabet or combination of both of this. This various methods are available to test if the entered string is digit or alphabets or alphanumeric.
bool isalnum:
output:
bool isalpha:
output:
bool isdigit:
output:
bool islower:
output:
bool isupper:
output:
bool isspace:
output:
Comments
Post a Comment