Skip to main content

New answers tagged

0 votes

Java Not Greater than Or Equal to Operator for Char Type

Use Character.toLowerCase() so you only check one range. char l = Character.toLowerCase(letter); while (l < 'a' || l > 'c') { } The condition simply checks if the letter is not between a and c.
Akhil Chandran's user avatar

Top 50 recent answers are included