Update check_voter method for Scala (#79)

* add IDE specific git ignore files

* add log for new user
This commit is contained in:
Ian Shiundu
2018-07-19 02:03:54 +03:00
committed by Aditya Bhargava
parent 48f971e361
commit fb0d9dccfd
2 changed files with 14 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ def check_voter(name: String): Unit = {
println("kick them out!")
} else{
voted += (name -> true)
println("let them vote!")
}
}
check_voter("tom")