The following if statement determines whether choice is equal to ‘Y’ or ‘y’:
if (choice == 'Y' || choice == 'y')
Rewrite this statement so it only makes one comparison and does not use the || operator. (Hint: Use either the toUpperCase or toLowerCase methods.)
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.