I have an ArrayList which stores both key & value in each row (e.g 1st row will have no,firstname,lastname,age and 2nd row will have 1,xxx,yyy,23 and 3rd row will have 2,aaa,bbb,24 and so on). First row have all the keys and the remaining rows will have the values.
I want to convert this into hashmap (e.g the keyshould be firstname and the values should be xxx,aaa).
Is there a way to do this??