I'm not making the next bit up, I swear


Map params = request.getParameterMap();
...
String[] p = params.get("some-parameter");
if(p != null)
{
  for(int j = 0; i != paramValue.length; ++j)
  {
    String s = p[j];
    ...
  }
}
This is from a web development framework. request is a ServletRequest instance. HTTP GET or POST parameters are bundled up behind the Map interface. Values are either null, or a string array. It's a fiddle, a faff. Everybody hates working with arrays in Java, and having to check for nulls is a PITA.