Assuming you want to use the map keys as name and map values as address: yes, it is possible - by writing the necessary code. I don't know of any JDK class or method that would do the work in this case.
What have you tried? Do you have some doubts?
posted 6 years ago
no name and address are the fields belongs to Employee like employee name and employee address
I have tried like this
I don't know whether it is correct or not