import java.io.IOException;

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

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

		System.out.println("Trying out System.out and System.in classes");
		
		System.out.print("Enter an integer: ");
		int number = 0;
		try {
			number = System.in.read();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			System.out.println("User did not enter a number?");
		}
		
		System.out.println("You entered " + number);
	}

}
