title: How to split a string of delimited elements into substrings containing an equal number of elements?
body: <p>I have a very long string with prices of about 400 000 and even more..</p>
  <pre><code>String s_prices = &quot;19; 16; 20; 01; 16; 1.3; 1.6; 50; 2.0; 17; ...&quot;
  </code></pre>
  <p>Then from this very long string, I want to cut it into multiple substrings , and each sub-string should have 3 prices, example:</p>
  <pre><code>19, 16, 20 
  
  01, 16, 1.3
  
  1.6, 50, 2.0 
  
  and more...
  </code></pre>
  <p>How do I create sub-strings each with three prices?</p>