uses java.io.InputStreamReader uses java.util.Scanner uses java.lang.System var names: List<String> = {"David", "Cathy", "Gearoid", "Nicole"} for(name in names){ print("name: ${names}") }
Standard input is empty
name: [David, Cathy, Gearoid, Nicole] name: [David, Cathy, Gearoid, Nicole] name: [David, Cathy, Gearoid, Nicole] name: [David, Cathy, Gearoid, Nicole]