I am fairly new to programming and have just been set the task of creating an application that will read in a .csv file name from a user input before then running a series of tests. Ultimately the program needs to compare each row (each row in the csv file represents one router) and return which routers need a patch based on set criteria. The format of the CSV file will look like this with the headings 'Hostname', 'IP Address', 'Patched?', Os Version, and Notes which do not necessarily need to be included -
A.example.COM, 1.1.1.1, NO, 11, Faulty fans
b.example.com, 1.1.1.2, no, 13, Behind other routers
C.EXAMPLE.COM, 1.1.1.3, no, 12.1
d.example.com, 1.1.1.4, yes, 14
c.example.com, 1.1.1.5, no, 12, Case a bit loose
e.example.com, 1.1.1.6, no, 12.3
f.example.com, 1.1.1.7, No, 12.2
g.example.com, 1.1.1.6, no, 15
So the program needs to return the name of any routers that do not share the same Hostname and IP Address as any other router, has a current OS version of 12 or higher, or has not already been patched.
So far I have tried to read in each individual line as a Java object and compare from there however I have had no success. Any suggestions on a good way to go about making this program work would be greatly appreciated, thanks.