//******************************************************************** // readBooleans.java Author: Sophie Quigley // // Demonstrates the use of readBoolean. // //******************************************************************** import cs1.Keyboard; public class readBooleans { //----------------------------------------------------------------- // Reads a character string from the user and prints it. //----------------------------------------------------------------- public static void main (String[] args) { boolean trueorfalse; while (true) { System.out.println ("Enter a boolean:"); trueorfalse = Keyboard.readBoolean(); System.out.println ("You entered: " + trueorfalse ); } } }