java - Multilistmap - getting data from resultset -


i using linkedlistmultimap store values resultset .

//map declaration:  listmultimap<string, string> multimap = linkedlistmultimap.create(); while(rs.next()) { multimap.put(address,name); } 

database values :

add1 phalani add1 vaishu

when resultset stores data ,for same key both values stored. output of multi map : {add1=[vaishu ,phalani]}

but output expect : {add1=[phalani,vaishu]} same stored in database .what can done.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -