I am attempting to read a text file that contains different values, then store the values into their respective arrays so that I can later verify scanner inputs. An example of the text file is below:
u1142592
87500
1
u1530078
125000
1
u2405234
105000
2
The first value is meant to be a string (representing a user ID), second is an int (user salary), and third is a boolean (determines if a user is a manager or not). I want to store each of these values in a separate array by their respective variable type, but I am very new to Java and I don't have any clue on how I could do this. Additionally, there are only 10 of each input (10 user IDs, etc), so I'm not sure if that helps or not.
What would I have to code in order to achieve my desired result? Thanks and I appreciate any help!