group1.model
Class MyUtilities

java.lang.Object
  extended by group1.model.MyUtilities

public class MyUtilities
extends java.lang.Object


Field Summary
static java.lang.String QUOTE
           
 
Constructor Summary
MyUtilities()
           
 
Method Summary
static int chartodigit(char digit)
           
static char digittochar(int digit)
           
static java.lang.String horiz_lc(int length, char line)
           
static boolean isOdd(int integer)
           
static boolean isWhitespace(int charNumber)
           
static void pause()
           
static boolean promptYN()
           
static int randInt(int minimum, int maximum, java.util.Random rand_gen)
           
static java.lang.String readBlock(java.io.BufferedReader input)
           
static int readInt(java.io.BufferedReader input)
           
static java.lang.String readLetters(java.io.BufferedReader input)
           
static java.lang.String setw(int width, int input)
           
static java.lang.String setw(int width, java.lang.String input)
           
static boolean word_contains_suffix(java.lang.String word, java.lang.String suffix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QUOTE

public static final java.lang.String QUOTE
See Also:
Constant Field Values
Constructor Detail

MyUtilities

public MyUtilities()
Method Detail

isWhitespace

public static boolean isWhitespace(int charNumber)

readBlock

public static java.lang.String readBlock(java.io.BufferedReader input)
                                  throws java.io.IOException
Throws:
java.io.IOException

readInt

public static int readInt(java.io.BufferedReader input)
                   throws java.io.EOFException,
                          java.io.IOException
Throws:
java.io.EOFException
java.io.IOException

readLetters

public static java.lang.String readLetters(java.io.BufferedReader input)
                                    throws java.io.IOException
Throws:
java.io.IOException

word_contains_suffix

public static boolean word_contains_suffix(java.lang.String word,
                                           java.lang.String suffix)

pause

public static void pause()

horiz_lc

public static java.lang.String horiz_lc(int length,
                                        char line)

setw

public static java.lang.String setw(int width,
                                    java.lang.String input)

setw

public static java.lang.String setw(int width,
                                    int input)

randInt

public static int randInt(int minimum,
                          int maximum,
                          java.util.Random rand_gen)

isOdd

public static boolean isOdd(int integer)

chartodigit

public static int chartodigit(char digit)

digittochar

public static char digittochar(int digit)

promptYN

public static boolean promptYN()
                        throws java.io.IOException
Throws:
java.io.IOException