Package edu.ntnu.stud.utils
Class InputValid
java.lang.Object
edu.ntnu.stud.utils.InputValid
Utility class for validating input.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
validateInt
(String input) Validates that the input is a positive number.
-
Constructor Details
-
InputValid
public InputValid()
-
-
Method Details
-
validateInt
Validates that the input is a positive number.- Parameters:
input
- the input to validate.- Throws:
IllegalArgumentException
- if the input is not a positive number.
-