Java : I want to change an integer array into a mathematical number
<p>Here is my array, it consists of array of integers. Actually, these are the key of my  HashMap which consists of some sentences or say "STRING" of a complete paragraph as a key value pair. Now I wanted to join those sentences from taking the key from the integer array one after another in given order.</p>

<pre><code> int[] arr = {3, 2, 0, 5, 3};

 HashMap&lt;Integer, String&gt; h = new HashMap&lt;Integer, String&gt;() {{
      put(0,"This is my third sentence.");
      put(3,"This is my first sentence.");
      put(5,"This is my forth sentence.");
      put(2,"This is my second sentence.");
 }};
</code></pre>

<p>The final output should be all the sentences combined as mentioned order and outout should be like a paragraph as :</p>

<p>This is my first sentence.This is my second sentence.This is my third sentence.
This is my forth sentence.This is my first sentence.</p>