HashMap m = request.getParameterMap(); Set k = m.keySet(); Set v = m.entrySet(); Object o[] = m.entrySet().toArray();
This will give you a call to map m with pairs K, V and a set of keys and a set of values. You can repeat these sets almost like an array. You can also use toArray to turn it into an array.
source share