Answers for "scala option"

0

scala option

val nameMaybe = request getParameter "name"
nameMaybe match {
  case Some(name) =>
    println(name.trim.toUppercase)
  case None =>
    println("No name value")
}
Posted by: Guest on April-03-2022

Code answers related to "Scala"

Browse Popular Code Answers by Language