title: How to convert Enumeration to Seq/List in scala?
body: <p>I'm writing a servlet, and need to get all parameters from the request. I found <code>request.getParameterNames</code> returns a <code>java.util.Enumeration</code>, so I have to write code as:</p>
  
  <pre><code>val names = request.getParameterNames
  while(names.hasMoreElements) {
      val name = names.nextElement
  }
  </code></pre>
  
  <p>I wanna know is there any way to convert a <code>Enumeration</code> to a <code>Seq/List</code>, then I can use the <code>map</code> method?</p>