import java.io.IOException;

/**
 * Demonstrating some use of the System.in and System.out objects with the
 * BufferedReader class
 * 
 * @author CSCI209
 *
 */
public class SystemIOReaderInClass {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		System.out.println("Trying out System.out and System.in classes, using a BufferedReader");

		System.out.print("Enter an integer: ");

		int number = 0;
		try {
			number = System.in.read();
		} catch (IOException e) {
			e.printStackTrace();
			// This is a failure -- should exit gracefully.
			System.exit(0);
		}

		System.out.println("You entered " + number);

	}

}
