title: How to Add elements at random positions in String array from a String ArrayList. In Android Java
body: <p>I am new to android java. And this is bugging me.
  Here, my ArrayList will have only 3 strings (black, grey, white). But please answer as if it had 100 or 1000 items. Then what would be the code to do that.</p>
  <pre><code>ArrayList&lt;String&gt; alCelebrityAllNAMES = new ArrayList&lt;String&gt;();
  String myArray = {&quot;1&quot;,  &quot;2&quot;,  &quot;3&quot;};
  
    public void regexImagesNames(){
          Pattern patternNames = Pattern.compile(&quot;/images/banners/(.*?)_234x60.gif&quot;);
          Matcher matcherNames = patternNames.matcher(fullHtmlCode);
          
          while(matcherNames.find()) {
              alCelebrityAllNAMES . add( matcherNames.group(1) ); //yields 3 words(strings)
  
          }
      }
  </code></pre>