title: Input and storing Strings in two-dimensional arrays
body: <p>My teacher explained two dimensional arrays in literally two paragraphs. He didn't give me any information on how to create them besides that and now I have to do an assignment. </p>
  
  <p>I've read up a lot about it and I somewhat understand how a 2D array is like an array of arrays, but I'm still completely and utterly confused about how to apply it. </p>
  
  <p>The assignment itself is very simple. It asks me to create a program that will ask a user for ten Criminal Records, (name, crime, year). This program will store the records in a two-dimensional array and then sort them using the selection sort.</p>
  
  <p>I know this is probably wrong, but here is what I have so far based on what I've read:</p>
  
  <pre><code>    public static void main(String[] args)throws IOException {
  
      //create array
      String[][] Criminals = new String[10][3]; // create 3 columns, 10 rows
  
      int i, j;
      int smallest; //smallest is the current smallest element
      int temp; //make an element swap
      String line;
  
      //loop to request to fill array   
      for (int row = 1; row &lt; Criminals.length; row++){
          for (int col = 1; col &lt; Criminals[row].length; col++){
              System.out.print("Enter a criminal name: ");
              Criminals[row][col] = br.readLine();
  
          }
      }
  }
  </code></pre>
  
  <p>So far, I'm just trying to get the input and store it. </p>
  
  <p>(Please try to be patient and thorough with me! Coding isn't my strongest point, but I'm trying to learn.) Any help would be amazing! Thanks in advance. :)</p>