I need to validate the lines of an input. But each line can only contain 2 numbers separated by 1 comma. Example of format:
1,4
2,7
8,9
Also the first number must be under a certain max (my program checks the max value possible by a id.size() method, it gives the size of a list and that must be the maximum number possible for the first number of the string).
Second number can be any value.