scala-101

Home   »   scala-101

# Class

```scala
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. 

Leave a Reply

Your email address will not be published. Required fields are marked *