title: How do I access the second brackets in a 2D array
body: <p>I am new to coding and am currently learning 2D arrays, I just learned about using curly brackets in the second part of the 2D array, but I don't know how to access and use the numbers in the curly brackets. What I'm currently working on looks like this,</p>
  
  <pre><code>array[1] = new int[]{1, 2, 3, 4, 5};
  array[2] = new int[]{3, 7, 34, 57};
  </code></pre>
  
  <p>I want to know how i can access the numbers in the curly brackets, so i can set them as variables. for example, use the number as a value for an array</p>
  
  <p>for example, <code>new int[]{2}</code> will get the value of <code>array[2]</code></p>
  
  <p>I hope this doesn't sound too dumb and you can understand my question</p>