// ----------------------------------------------------------------------
// A sample class of reading an integer from the Standard Input Stream.
// Paul McNamee 6/98
// 
// ----------------------------------------------------------------------

import java.io.*;

public class ReadInt {
  public static void main(String[] args) throws IOException {
    DataInputStream dis = new DataInputStream(System.in);
    System.out.print("Type a integer, followed by <Enter>: ");
    int x;
    x = Integer.parseInt(dis.readLine()) ;
    System.out.println("Value typed in is " + x) ;
  }
}
