Question: Which is the simplest expression that is true only when myChar is among a - z or A - Z ? Question 3 options: Character.isLetter

Which is the simplest expression that is true only when myChar is among a-z or A-Z?
Question 3 options:
Character.isLetter(myChar)
Character.isLetter(toLowerCase(myChar))
Character.isLetter(myChar) && !Character.isWhitespace(myChar)
Character.isLetter(toLowerCase(myChar))|| Character.isLetter(toUpperCase(myChar))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!