/* TestKeyboard.java CIS 160 Dave Klick 2015-09-02 Simple demonstration using the Keyboard class from the course website demonstration programs. Note: This code assumes the Keyboard.java or Keyboard.class file is in the same directory/folder as this code. */ public class TestKeyboard { public static void main(String[] args) { // Declare variables String name; int age; Keyboard kbd = new Keyboard(); // Get name and age from user name = kbd.getString("Enter your name: "); age = kbd.getInt("Enter your age (0-115): ", 0, 115); // Display name and age System.out.printf("You are %s. You are %d years old.%n", name, age); } }