Class InputValid

java.lang.Object
edu.ntnu.stud.utils.InputValid

public class InputValid extends Object
Utility class for validating input.
  • Constructor Details

    • InputValid

      public InputValid()
  • Method Details

    • validateInt

      public static void validateInt(String input)
      Validates that the input is a positive number.
      Parameters:
      input - the input to validate.
      Throws:
      IllegalArgumentException - if the input is not a positive number.