title: How to convert arrayList to string separated by hyphen
body: <p>I have String ArrayList has some elements but I need to convert it to string each element is separated from other by -
  this is the arrayList</p>
  
  <pre><code>List&lt;String&gt; items = new ArrayList&lt;String&gt;();
  items.add("a");
  items.add("b");
  items.add("c");
  :
  :
  </code></pre>
  
  <p>I need to get the string like this</p>
  
  <blockquote>
    <p>"a-b-c-..."</p>
  </blockquote>