Problem with outputting map values in scala

Viewed 11640

I have the following code snippet:

val map = new LinkedHashMap[String,String]
map.put("City","Dallas")
println(map.get("City"))

This outputs Some(Dallas) instead of just Dallas. Whats the problem with my code ?

Thank You

3 Answers
Related