Write a Java method that returns true if and only if a character is a digit or a letter. The method should display appropriate feedback to the console.

What will be an ideal response?

```
public boolean isDigitOrLetter(Character c)
{
if(c.isDigit(c.charValue()) || c.isLetter(c.charValue()))
{
System.out.println("Returning true");
return true;
}
else
{
System.out.println("Returning false");
return false;
}
}
```

Computer Science & Information Technology

You might also like to view...

What is the name of the code that is used to store characters?

What will be an ideal response?

Computer Science & Information Technology

A movie is a series of still frames projected at a rate fast enough to fool the human eye into perceiving continuous motion.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology