title: how to use <c:forEach > for loop String
body: <p>if array data is </p>
  
  <pre><code>String sampdata[]= new String [22];
  
  sampdata[0] ="a";,sampdata[1] ="b";
  sampdata[2] ="c";,sampdata[3] ="d";
  sampdata[4] ="e";,sampdata[5] ="f";
  sampdata[6] ="g";,sampdata[7] ="h";
  sampdata[8] ="i";,sampdata[9] ="j";
  sampdata[10] ="k";,sampdata[11] ="l";
  sampdata[12] ="m";,sampdata[13] ="n";sampdata[14] ="o";
  sampdata[15] ="m";,sampdata[16] ="n";sampdata[174] ="o";
  sampdata[18] ="m";,sampdata[19] ="n";sampdata[20] ="o";
  sampdata[21] ="m";
  </code></pre>
  
  <p>and jsp use jstl foreach</p>
  
  <pre><code>&lt;c:forEach var="list" items="${sampdata" begin="0" end="9" step="2" varStatus="status"&gt;
        &lt;tr&gt;
         &lt;td&gt;${list}&lt;/td&gt;  //a
         &lt;td&gt;${list}&lt;/td&gt;  //td : b
         &lt;td&gt;&lt;/td&gt;
       &lt;/tr&gt;
      &lt;/c:forEach&gt;
  </code></pre>
  
  <p>i mean </p>
  
  <p>check this java array</p>
  
  <pre><code>for (int i=0 ; i&lt;9;i +=2){
   System.out.println(i)
  System.out.println(i+1) &lt;- i want like this.
  }
  </code></pre>
  
  <p>i want "td:b" view b.</p>
  
  <p>how to  fix that?</p>
  
  <p>"foreach" can use like that?</p>