|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectTimeInput
public class TimeInput
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 |
|---|
public TimeInput()
| Method Detail |
|---|
public void getNextTime()
public void replace(java.lang.String token)
token - input string of minutes:seconds
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||