コレクション反復

C#

foreach (string str in list) {
  Console.WriteLine(str);
}

Java

for (String str : list) {
  System.out.println(str);
}