title: Converting List to a String in java for Oracle SQL IN clause
body: <p>I have the below list</p>
  <pre><code>ArrayList&lt;String&gt; list1=new ArrayList&lt;String&gt;();
  list1.add(&quot;abc&quot;);
  list1.add(&quot;bdc&quot;);
  list1.add(&quot;acr&quot;);
  list1.add(&quot;bde&quot;);
  </code></pre>
  <p>I wanted to use this list in a select query like below</p>
  <pre><code>select * from emp where emp_name in ('abc','bdc','acr','bde')
  </code></pre>
  <p>I am using spring boot rest template and tried with         ArrayList paramsList =new ArrayList() but it failed. Is there a easy way to do instead of converting into a string by iteration.</p>