title: Convert html form data into ArrayList
body: <p>Hello to the community!</p>
  
  <p>I would like an end-user to enter data, in the format of a comma delimited list of numbers, into a web application.  Then I would like to be able to perform an operation on that list and return a result to the end-user.</p>
  
  <p>I have been playing around with HTML5 text forms and GET/POST methods. I can create a text form to gather the input and I can use request.getParameter() to collect the data, but I cannot figure out how to convert the user-input into a format I can work with.  I would like to convert it to an ArrayList of Integers or Doubles.</p>
  
  <p>I know this is a very broad question, but I would appreciate any recommendations you may have.  Perhaps I am moving in the wrong direction altogether.</p>
  
  <p>Here is my servlet code right now:</p>
  
  <pre><code>import java.io.IOException;
  import java.io.PrintWriter;
  import javax.servlet.http.HttpServlet;
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpServletResponse;
  
  public class getMod12 extends HttpServlet{
  
  @Override
  public void doGet(HttpServletRequest request, HttpServletResponse response)
  throws IOException{
          PrintWriter out = response.getWriter();
          String str=request.getParameter("pitches");
          String[] str2 = str.split(",");
          System.out.println("Str =" + str2);
      }
  }
  </code></pre>