Note the following program. Provide a for loop that is functionally equivalent to the given do loop.
import java.util.Scanner;public class Test{public static void main(String[] args){Scanner stdIn = new Scanner(System.in);String entry;do{System.out.println("Enter 'q' to quit: ");entry = stdIn.nextLine();} while (!entry.equals("q"));} // end main} // end class Test
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.