Class Read

java.lang.Object
  extended byRead

public class Read
extends Object

This class takes command line input from user The class is based on book example (Horton, 2000 pp.378-379) Beginning JAVA 2.

Version:
Version 1
Author:
Adeel Hashmi

Constructor Summary
Read()
          Creates command line reader
 
Method Summary
 int intRead()
          takes input from user breaks it into integer token and return
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Read

public Read()
Creates command line reader

Method Detail

intRead

public int intRead()
            throws Exception
takes input from user breaks it into integer token and return

Returns:
input value
Throws:
Exception - if error occured in reading