title: Java - Can I add multiple items, of the same type, in an index of an array?
body: <p>Can I add multiple items, of the same type, in an index of an array in java? 
  I am trying to make a backgammon program in java and I cannot figure out how to create the board. I need to store the 'checkers', 5 checkers in one position. Can I store 5 items in a single index. eg. <code>array[1] = {a,b,c,d,e}</code>. If i cant do that with an array, are there any other ways to do that.</p>
  
  <p>This is what I have: (I do not have colours for now. ony variable homeWhite for whites and homeBlack for blacks)</p>
  
  <pre><code>  //other methods omitted
  
   /**
   *  a method to set the default board design and layout of the game.
   */
  private void newBoard()
  {
  
      homeWhite = 0;
      homeBlack = 0;
      barWhite = 0;
      barBlack = 0;
      private int [] stoneCounts = new int[25];
  
      stoneCounts[0]  = 5*homeWhite;
      stoneCounts[11] = 2*homeWhite;
      stoneCounts[16] = 3*homeWhite;
      stoneCounts[18] = 5*homeWhite;
      stoneCounts[23] = 5*homeBlack;
      stoneCounts[12] = 2*homeBlack;
      stoneCounts[7]  = 5*homeBlack;
      stoneCounts[5]  = 3*homeBlack;
      stoneCounts[24] = barWhite = barBlack;
  
      System.out.println(stoneCounts[0]+"===="+ stoneCounts[1]+"===="+stoneCounts[2]+"===="+stoneCounts[3]+"===="+ stoneCounts[4]+"===="+stoneCounts[5]+"===="+ 
      stoneCounts[6]+"===="+stoneCounts[7]+"===="+stoneCounts[8]+"===="+stoneCounts[9]+"===="+ stoneCounts[10]+"===="+stoneCounts[11]);
      System.out.println("");
      System.out.println("");
      System.out.println("Bar: "  + stoneCounts[24]);
      System.out.println("");
      System.out.println("");
      System.out.println(stoneCounts[12]+"===="+ stoneCounts[13]+"===="+stoneCounts[14]+"===="+ stoneCounts[15]+"===="+stoneCounts[16]+"===="+ stoneCounts[17]+"===="
      +stoneCounts[18]+"===="+stoneCounts[19]+"===="+stoneCounts[20]+"===="+ stoneCounts[21]+"===="+stoneCounts[22]+"===="+stoneCounts[23]);
  }
  </code></pre>