Class TimeInput

java.lang.Object
  extended by TimeInput

public class TimeInput
extends java.lang.Object

The TimeInput class reads input in minutes:seconds format with one time input per line and no blank lines. It is not very robust. Intended usage is to declare one timeInput object and use getNextTime( ) to read the next time input from the user. Obtain the read values of minutes and seconds with getMinutes( ) and getSeconds( ). Note that these values are not checked in any way other than that they are integers (possibly negative) and were separated by a colon(:) in the input.


Constructor Summary
TimeInput()
          builds a new time input object
 
Method Summary
 void getNextTime()
          replaces current time input with new value from input
 void replace(java.lang.String token)
          replaces current time input with new value from token
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeInput

public TimeInput()
builds a new time input object

Method Detail

getNextTime

public void getNextTime()
replaces current time input with new value from input


replace

public void replace(java.lang.String token)
replaces current time input with new value from token

Parameters:
token - input string of minutes:seconds