My input is in this format: The array length is not known. I coded it this way: But I am getting this error. Thanks in advance. Answer You should use hasNextInt to check for integer input. Once no more integers, then just use next() to read the player. Example input’s supported output
Tag: inputmismatchexception
Summing up times using Duration
For my project, I have to read in data that is given to us in a CSV file and write it out in a certain format. I have it almost done but the problem I am having is that my program is not completely reading through the times that are given. From here my program is just reading all the