Write a method called isAlpha that accepts a character parameter and returns true if that character is either an uppercase or lowercase alphabetic letter.
What will be an ideal response?
```
public boolean isAlpha(char ch)
{
return ( (ch >= 'a' && ch <= 'z') ||
(ch >= 'A' && ch <= 'Z') );
}
```
Computer Science & Information Technology
You might also like to view...
Which of the following is not a syntax error?
a. std::cout << 'Hello world! '; b. std::cout << "Hello world! "; c. std::cout << "Hello world! "; d. std::cout << Hello world!;
Computer Science & Information Technology
The operation top removes the top element of the stack.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology