Convert the do-while loop in the following code to a while loop:
Scanner keyboard = new Scanner(System.in);
String input;
char sure;
do
{
System.out.print("Are you sure you want to quit? ";
input = keyboard.next();
sure = input.charAt(0);
} while (sure != 'Y' && sure != 'N');
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.