I have a following values in map
john smith=mr
kim taylor=prof
shannon sperling=miss
I wanted to convert into the following format in arraylist
mr | john smith
prof | kim taylor
miss | shannon sperling
i tried with following code
--------------------
---------------------
Map<String, String> title = gluetitles(titles);
ArrayList<Entry> list1 = new ArrayList<Entry> (title.entrySet());
System.out.println(list1);
---------------------
---------------------
But i did not get idea how to get the above format...
<String, String>in the map?Map? The same can be achieved just by splitting and reformatting the String, then adding that String to the list.