f7a02a46 ^
1 2 3 4 5 6 7 8 9 10 11 12
object Person { def fromString(s: String): Person = { val Array(name, age) = s.split(":") Person( name, age.toInt) } } case class Person(name: String, age: Int)