myio
Class SystemIO

java.lang.Object
  extended by myio.SystemIO

public class SystemIO
extends java.lang.Object


Constructor Summary
SystemIO()
           
 
Method Summary
static double readDouble(java.lang.String msg, java.io.BufferedReader theStream, double min, double max)
           
static int readInt(java.lang.String msg, java.io.BufferedReader theStream, int min, int max)
           
static boolean ynQuestion(java.lang.String msg, java.io.BufferedReader theStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemIO

public SystemIO()
Method Detail

ynQuestion

public static boolean ynQuestion(java.lang.String msg,
                                 java.io.BufferedReader theStream)
                          throws java.io.IOException
Throws:
java.io.IOException

readInt

public static int readInt(java.lang.String msg,
                          java.io.BufferedReader theStream,
                          int min,
                          int max)
                   throws java.io.IOException
Throws:
java.io.IOException

readDouble

public static double readDouble(java.lang.String msg,
                                java.io.BufferedReader theStream,
                                double min,
                                double max)
                         throws java.io.IOException
Throws:
java.io.IOException