title: Put strings in List<string> and output
body: <p>I have a test project that puts 4 strings to a list but can't seem to do it right. I am trying to view my list in 2 textboxes using the for and foreach loops.</p>
  
  <pre><code>private void button1_Click(object sender, EventArgs e)
  {
      List&lt;string[]&gt; testList2 = new List&lt;string[]&gt;();
  
      string[] text = { textBox1.Text, textBox2.Text, textBox3.Text, textBox4.Text };
      testList2.Add(text);
  
      textBox5.Text = testList2.Count.ToString();
  
      foreach (string[] list1 in testList2)
      {
          foreach (string list2 in list1)
          {
              textBox6.Text = list2.ToString();
          }
      }
      string temp = testList2.ToString();
      for (int i = 0; i &lt; testList2.Count; i++)
      {
          for (int j = 0; j &lt; i; j++)
          {
              textBox7.Text = testList2[j].ToString();
          }
      }
  }
  </code></pre>