Need help with ap comp java question
<p>I really need help with part a of this question on this site   <a href="http://www.edupages.com/phs/APCSAB/Curriculum/Lab3%28Concentration%29/APABLab1%20-%20Concentration.htm" rel="nofollow">http://www.edupages.com/phs/APCSAB/Curriculum/Lab3%28Concentration%29/APABLab1%20-%20Concentration.htm</a></p>

<p>This is what I have so far. Any help is appreciated.</p>

<p><strike></p>

<pre><code> private void fillBoard()
    {    
      int myindex = 0;
      int midsize = size/2;
      for(i = 0; i+1&lt;size; i+=2)
        possibleTileValues = newFooList(String n, midsize);
      possibleTileValues.fillFooList();
      int j = i + 1;

      String k = possibleTileValues.get(myindex);
      gameboard[i] = k;
      gameboard[j] = k;

    }
</code></pre>

<p></strike></p>

<p>Redone code:</p>

<pre><code>private void fillBoard() 
{ 
  if(size%2==0&amp;&amp;possibleTiles&gt;=(size/2)) 
  { 
    for(int i=0, i&lt;possibleTileValues.length,i++) 
    { 
      gameBoard.addFoo(possibleTileValues.getFoo(i));
      gameBoard.addFoo(possibleTileValues.getFoo(i)); 
    } 
    for(int i=0, i&lt;size,i++) 
    { 
      Random gen= new Random(); 
      int randomSpot=gen.nextInt(size); 
      int temp = gameBoard[i]; 
      gameBoard[i]=gameBoard[randomSpot]; 
      gameBoard[randomSpot] = temp; 
    } 
  } 
}
</code></pre>
