Package main
Class Utilities
java.lang.Object
main.Utilities
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkArgumentsOrThrow
(int provided, int expected) static boolean
hasNextLineOrThrow
(Scanner scanner)
-
Constructor Details
-
Utilities
public Utilities()
-
-
Method Details
-
checkArgumentsOrThrow
public static void checkArgumentsOrThrow(int provided, int expected) throws WrongAmountOfArgumentsException - Throws:
WrongAmountOfArgumentsException
-
hasNextLineOrThrow
- Throws:
StreamInterruptedException
-