New answers tagged while-loop
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.
Top 50 recent answers are included
Related Tags
while-loop × 26471python × 6708
loops × 5666
java × 4519
php × 3318
for-loop × 2789
if-statement × 2237
c × 2176
c++ × 1790
javascript × 1541
python-3.x × 1369
arrays × 1356
mysql × 1181
bash × 981
c# × 892
do-while × 748
function × 692
list × 557
sql × 551
string × 536
r × 488
infinite-loop × 451
input × 445
break × 436
foreach × 387