/*
 * This class is a test for reading in input.  It is testing reading
 * in a string and reading in an int.  [Note: there is no error checking]
 */

public class ReadTest {

  public static void main(String [] argv){
    new ReadTest();
  }

  public ReadTest(){
    this.askAndPrint();
  }

  public void askAndPrint(){

    String name;
    int age;

    //Read Input is a great file with fun input reading abilities.

    System.out.println("What is your name?");
    name = ReadInput.getWord();

    System.out.println("How old are you?");
    age = ReadInput.getInt();

    System.out.println(name + " is " + age + " years old");

  }
 
}
