title: How to convert String to string set in java
body: <p>I have a method with return type as string below is the string which is getting retrieved how should in convert this string to setso that i can iterate through the String set.</p>
  <pre><code>[&quot;date:@value2&quot;,&quot;lineofbusiness:@value3&quot;,&quot;pnrno:@value1&quot;,&quot;reason:@value4&quot;]
  </code></pre>
  <p>If i try to split using String[] the result is not expected i have to get these individual values like <strong>date:@value2</strong> and have to split this to complete the rest of my logic.</p>
  <p>How to convert the above string to below string set</p>
  <pre><code>Set&lt;String&gt; columnmapping = new HashSet&lt;String&gt;();
  </code></pre>