title: How can I store a set of URL parameters in Java?
body: <p>Normally I would store URL parameters (GET request parameters) with a <code>HashMap&lt;String,String&gt;</code> but that doesnt account for URLs like <code>test.php?request=id1&amp;request=id2</code>. Is there any data structure implemented in Java that can deal with this (and that I can query a parameter by name)? Alternatively, is there a single class somewhere that I can use (no libraries please)?</p>