Hi,
We know that java.util.Map is not a collection since it is not implementing Collections interface.
is there any way to convert java.util.List to java.util.Map. waiting for guidance
Map is a collection of key value pairs. But List is a collection of elements. To convert it to a map u have to attach a unique key(or value) to each element in the list, so that it acts as map. In that case just iterate thru and for each element add a key to it( or value)
I hope thats clear