title: Adding strings to lists - Java
body: <pre><code>        String t1 = request.getParameter("t1");
          String t2 = request.getParameter("t2");
  
          List&lt;String&gt; terms = new ArrayList&lt;String&gt;();
          for (int i = 1; i &lt; 51; i++) {
              terms.add(t + i);
          }
  </code></pre>
  
  <p>Imagine I had vars t1 to t50, is it possible to loop each t using a counter? Something like above, but obvi that doesn't work.</p>