title: Order of request.getParameterNames()
body: <p>How do I get all the <code>parameterNames</code> in an HTML form in
  the same sequence?</p>
  <p>Example:</p>
  <ul>
  <li><p>If the form contains <code>FirstName</code>, <code>LastName</code>and <code>Age</code></p>
  </li>
  <li><p>The output should appear <strong>exatcly</strong> in the <strong>same sequence</strong></p>
  </li>
  </ul>
  <p>I have tried using the following but this shifts the
  order of the output:</p>
  <pre><code>Enumeration paramNames = request.getParameterNames();
  while(paramNames.hasMoreElements()) {
      String paramName = (String) paramNames.nextElement();
      out.print(paramName);
  }
  </code></pre>