title: C# Add items to a 2 dimensional array
body: <p>I'm trying to read values from a console application to add them to a two-dimensional array.</p>
  
  <p><strong>Current code:</strong></p>
  
  <pre><code>public void getUserResponses(int amount)
  {
      int current = 0;
  
      string[,] userArray = new string[amount, 2]; // Array
  
      while (current &lt; amount)
      {
          Console.WriteLine("Please enter username #" + current);
          string username = Console.ReadLine();
          // Add username to array
          current++;
      }
  }
  </code></pre>
  
  <p>As you can see in the code, I want to read the username and then add it to the array. </p>
  
  <p><strong>Example:</strong></p>
  
  <p>Read the username</p>
  
  <pre><code>string username = Console.ReadLine();
  </code></pre>
  
  <p>And then add the username to the array in the following format:</p>
  
  <pre><code>userArray[username][placeholder]
  </code></pre>
  
  <p>How could I manage this?</p>