title: How to concatenate 2 or more strings as one inside a string array in Java?
body: <p>I'd like to concatenate 2 or more consecutive strings into one string in an array according to two variables <code>x</code> and <code>y</code> meaning that starting from the <strong>x:th</strong> element, concatenate, until we have concatenated <strong>y</strong> elements. For example, if an Array 'A' has elements as:</p>
  
  <pre><code>A = {"europe", "france", "germany", "america"};
  x=2;y=2;
  //Here, I want to concatenate france and germany as :
  A = {"europe", "france germany", "america"};
  //Or 
  x=2,y=3;
  
  A= {"europe", "france germany america"};
  </code></pre>
  
  <p>Like this. Anyone know How This can be done without complex programming?</p>