Computer Applications
Distinguish between isDigit() and isLetter()
Java Library Classes
1 Like
Answer
| isDigit() | isLetter() |
|---|---|
| isDigit() method returns true if the specified character is a digit; returns false otherwise. | isLetter() method returns true if the specified character is a letter; returns false otherwise. |
Answered By
3 Likes
Related Questions
Distinguish between isLowerCase() and toLowerCase()
Distinguish between isUpperCase() and toUpperCase()
Distinguish between parseFloat() and parseDouble()
Define a class (using the Scanner class) to generate a pattern of a word in the form of a triangle or in the form of an inverted triangle, depending upon user's choice.
Sample Input:
Enter a word: CLASS Enter your choice: 1 Sample Output: C CL CLA CLAS CLASS Enter your choice: 2 Sample Output: CLASS CLAS CLA CL C