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') );
}
```
Note: similar functionality is provided by the Character.isLetter method

Computer Science & Information Technology

You might also like to view...

Symbols that are used to evaluate data in the field to determine if it is the same (=), greater than (>), less than (<), or in between a range of values as specified by the criteria

a. Logic symbols b. Operation signs c. Comparison Operators

Computer Science & Information Technology

A ________ is a computer found in large businesses, organizations, and government agencies where thousands of users must simultaneously use the data and resources of their institution

A) mainframe B) tablet C) supercomputer D) desktop

Computer Science & Information Technology

The subnet mask is used to determine which part of the IP address represents the network number

Indicate whether the statement is true or false

Computer Science & Information Technology

Some systems, for various reasons, allow only one side or the other to transmit at one time. This type of connection is an example of a ____ connection.?

A. ?full-duplex B. ?half-duplex C. ?single-duplex D. ?multi-duplex

Computer Science & Information Technology