I made a board class that is simply an array with 3 integers.
public class board
{
   public int[] boardArray = new int [3];
   public board (int[] b1)
   {
      for(int i=0;i<b1.length;i++)
      {
         boardArray[i] = b1[i];
      }
   }
}
I want to print out all the boards added to an array list called losers, but I can only get it to print the spot in memory. I understand that I have to run a loop and call each individual piece of the array up, but I do not understand how to access the elements of my array. Here is the code I use to print:
for (board b : loser)
{
  System.out.println( b.int[0] +"" + b.int[1]+"" + b.int[2]);
}
    
b.boardArray[0]notb.int[0].ArrayList- the latter is aListbacked by an array.