For the input like below, I would like to invoke it's respective setter method. For example Input:
name | age
abc | 32
bac | 43
The above input will be stored under "List<Map<String, String>>
" and I should be able to find setName for "name" and setAge for "age" and assign "abc" to setName and 32 to setAge. Both setName and setAge is declared in a Java file.
I have explored BeanUtils and Reflection API yet trying to find a solution.
Kindly share your opinion to achieve my requirement