
/*
 * program to demonstrate input with the "BasicIo" class
 */

import java.lancs.* ;

public class Chapter4n1
    {
    /*
     * main
     */

    public static void main(String[] args) throws Exception
	{
	// read in and output a String
	BasicIo.prompt("please type in a string ") ;
	String string1 = BasicIo.readString() ;
	System.out.println("the string you typed was **" + string1 + "**") ;

	System.out.println() ;

	// read in and output an integer
	BasicIo.prompt("please type in an integer ") ;
	int intValue = BasicIo.readInteger() ;
	System.out.println("the integer you typed was " + intValue) ;
	} // end of method main
    } // end of class Chapter4n1

