Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var dictionary = Map[String,String]().withDefaultValue("ei löytynyt")
- Source.fromFile(new File("italia.txt")).getLines().grouped(2).foreach(s => dictionary += (s(0) -> s(1)))
- while(true) println(dictionary(readLine))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement