static void Main(string[] args) { string[] names = { "Jimmy", "Joey", "Jacky", "Jaime", "Jenifer", "Jonny", "Jose", "Jay Jay", "Boy George", "Kilo Sweet", "Jake" }; Console.WriteLine("Number of students: " + names.Length); StudentPicker sp = new StudentPicker(names); List <List <string> > groups = sp.MakeManyGroups(2); int i = 1; foreach (List <string> group in groups) { Console.WriteLine("Group " + i); PrintList(group); i++; } //string s =sp.GetAndExcludeStudent(); //Console.WriteLine(s); }
static void Main(string[] args) { string[] names = { "Manik", "Dakota", "Bob", "Kimvy", "James", "Moise", "Liz", "Mari", "Sam", "Cody", "Flaka", "Josh", "Jason", "Mahruchi" }; Console.WriteLine("Number of students: " + names.Length); StudentPicker sp = new StudentPicker(names); List <List <string> > groups = sp.MakeManyGroups(2); int i = 1; foreach (List <string> group in groups) { Console.WriteLine("Group " + i); PrintList(group); i++; } //string s =sp.GetAndExcludeStudent(); //Console.WriteLine(s); }