using System;
public class Program
{
static String[] test;
static String[] test2;
public static void Main()
test = new String[100];
// i was trying to be cheekie
for (int i = 0; i <= 100; i++)
test[test.Length - 1] = "1243214 test ";
}
for (int i = 0; i <= test.Length -1; i++)
Console.Write(test[i]);
Console.WriteLine();
// what i should have done
test2 = new String[100];
for(var i = 0; i <= test2.Length; i++){
if(test2[i] == null){
test2[i] = "example 2";
break;
for (int i = 0; i <= test2.Length -1; i++)
Console.Write(test2[i]);