How to convert my byte[] methods to arraylist [] methods? : <pre><code>int movedistance = 5; // Distance to move the board

@Override
public byte getLive(int x, int y) {
    return board[y][x];  // Arraylist board.get(y).get(x) ?
}

public void patternRight(){
        byte[][] testBoard = new byte[getHeight()][getWidth()];
        // testBoard = new Arraylist&lt;&gt; ? 
        for (int x = 0; x &lt; getHeight(); x++) {
            for (int y = 0; y &lt; getWidth(); y++){
                if (getLive(y, x) == 1) testBoard[x][y + movedistance] = 1;
            }
        }
}
</code></pre>

<p>I'm trying to make a method that moves my game pattern on my board(Game of life). This move method I currently have works with byte[]. I want to make exactly same method but with ArrayList.</p>
