Package src.utils
Class Utils
java.lang.Object
src.utils.Utils
A Utils Class for utility functions
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
scanner
-
-
Constructor Details
-
Utils
private Utils()
-
-
Method Details
-
inputString
Reads a String fromstdin- Parameters:
text- The text displayed before reading input- Returns:
- The String from
stdin
-
inputInt
Reads an int fromstdin- Parameters:
text- The text displayed before reading input- Returns:
- The int from
stdin
-
inputDate
Reads a date fromstdin- Parameters:
text- The text displayed before reading input- Returns:
- The date from
stdin
-
clear
public static void clear()Clears the screen
-