I have a requirement in which I am iterating a list using a for loop and getting the values of a device like model number(3-digit number),directory number etc. The model number which I got should be compared/search with a CSV file(it has 2 columns-compared with one column-3-digit model number) and need to find its corresponding value in the other column.Once it finds the value it should display that value in the list instead of the 3-digit number.I think I create a hashmap after reading the csv file and pull the output from the hashmap.
Can you let me know if my approach is correct and if so can I get a sample code as how I need to do this? thank you so much in advance. Language-Java