How can I obtain values of key-value pair from a Hashmap?
<pre><code>mylogger.info("original request start: "+request.getQueryString());
System.out.println("Query1:" + request.getQueryString());
QueryStats queryStats=new QueryStats();
Map parameterMap = request.getParameterMap()==null? null:new HashMap(request.getParameterMap());
System.out.println("Query2:" + parameterMap);

Collection newParamsValue=parameterMap.values();
Object newParams[]=newParamsValue.toArray();
StringBuffer strParam=new StringBuffer() ;
int l=newParams.length;
for(int i=0;i&lt;l;i++){
    **strParam=strParam.append((StringBuffer)newParams[i]);**
}
</code></pre>

<p>I want to get all the values into a string. How can I get it?</p>
