title: Java: Having problems using an array to point to another array
body: <p>To wrap my head around objects and arrays/arraylists, I decided to make a Tic-Tac-Toe app. </p>
  
  <p>Here's the want to do:</p>
  
  <p>The board is composed of a char array[3][3] which looks like/corresponds to: </p>
  
  <pre><code>codeindent         - - -  0,0 1,0 2,0
  c                  - - -  0,1 1,1 2,1
  c                  - - -  0,2 1,2 2,2
  </code></pre>
  
  <p>I have the players input their move choice by entering a digit 1-9</p>
  
  <pre><code>1 2 3 
  4 5 6
  7 8 9
  </code></pre>
  
  <p>Now I'd like an array where if I called index 4, it would return [0,1] in such a way I could point it directly to the char[][] array so I could do something along the lines of (I know that's not how its implemented but I'm putting var types for my own mental clarity)</p>
  
  <pre><code>char[][] boardArray[??? refArray[int playerMove]] = char currentPlayer
  </code></pre>
  
  <p>However, I just can't seem to wrap my head around what I need to do. I don't know what type of array it should be or why. </p>
  
  <p>While typing this/looking stuff I just realized arrays are objects and can only store primitives in java. So I couldn't use an array to call an array...is this where I'd use Arraylists? </p>
  
  <p>Thanks for all the answers! The purpose of this little exercise <em>was</em> to use arrays in an overly complicated and ridiculous fashion for the sole purpose of getting me practice with them, but it does seem that java as a language isn't capable of what I want to do in the fashion I want to do it. Definitely gonna go through and try out these other answers too</p>