fork download
  1. uses java.io.InputStreamReader
  2. uses java.util.Scanner
  3. uses java.lang.System
  4.  
  5. var names: List<String> = {"David", "Cathy", "Gearoid", "Nicole"}
  6.  
  7. for(name in names){
  8. print("name: ${names}")
  9.  
  10.  
  11. }
  12.  
Success #stdin #stdout 3.11s 172452KB
stdin
Standard input is empty
stdout
name: [David, Cathy, Gearoid, Nicole]
name: [David, Cathy, Gearoid, Nicole]
name: [David, Cathy, Gearoid, Nicole]
name: [David, Cathy, Gearoid, Nicole]