Class class Upper { def upper(strings: String*): Seq[String] = { strings.map((s:String) => s.toupperCase()) } } String* Sequence of 0 or more elements scala's Seq is equivalent to Java's List. And Seq is a trait.