/* Loops5.java CIS 111 Sept. 24, 2007 David G. Klick Demonstrates sentinel controlled repetition */ import javax.swing.*; public class Loops5 extends CIS111App { public static void main(String[] args) { String strIn; do { strIn = getString("Enter some text (Q to quit)"); if (!strIn.equalsIgnoreCase("Q")) { println("You entered: " + strIn); } } while (!strIn.equalsIgnoreCase("Q")); } }