I have a Map<String, List<String>> as follows
{Accept-Ranges=[bytes],
Connection=[Keep-Alive],
Content-Length=[4478161],
Content-Type=,
Date=[Fri, 03 Aug 2012 10:04:48 GMT],
ETag=["de2a5-4454d1-4c6186c77fb4d"],
Keep-Alive=[timeout=15, max=100],
Last-Modified=[Tue, 31 Jul 2012 04:15:08 GMT],
Server=[Apache/2.2.16 (Ubuntu)]}
I want to separate the key value pairs from this and also want to get the content corresponding to each key. How can I achieve this?
You can get a value to a specific key by calling the
get()method of theMap.Example: