How do you check if a character in a string is a digit or letter?
Answer / Rohit Rathi
To check if a character in a string is a digit, use `Character.isDigit(char c)`. To check if it's a letter, use `Character.isAlphabetic(char c)`.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is byte code and why is it important to java’s use for internet programming?
What are "methods" and "fields"?
Is void a data type in java?
Why does it take so much time to access an applet having swing components the first time?
What is regex in java?
What is native method in java?
How is the marker interface used in Java?
What is java util hashmap?
how to handle a singleton service locator. when multiple threads are trying to get the singleton object in same time
Write a function to find out longest palindrome in a given string?
What is the use of bin and lib in JDK?
What is equlas() and hashcode() contract in java? Where does it used?