title: how to use string builder to append double quotes and 'OR' between elements
body: <p>This is my code where I will get set of values in a list array.</p>
  
  <p>how to use string builder to append double quotes and OR between all those elements and save to a string?</p>
  
  <p>Also is it possible to get the elements in a split? For example I will get:</p>
  
  <pre><code>a,b,c,d,e,f,g,h,i,j 
  </code></pre>
  
  <p>in an array I want the output as </p>
  
  <pre><code>"a" OR "b" OR "c" OR "d" 
  </code></pre>
  
  <p>and remaining elements in another iteration. As there are 10 elements I want 5 elements at at time in above format. Is it possible in string builder. Here in my example I have mentioned total as 10 elements but I actually get more than 1000 elements. Here is my code.</p>
  
  <pre><code>List&lt;String&gt; test = new ArrayList&lt;String&gt;();
  while (rs.next()) {
      String url = rs.getString("rssUrl");
      test.add(url);
  } 
  </code></pre>