Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
private def exercise2() {
val list =
List("The", "Quick", "BROWN", "Fox", "Jumped", "Over", "The", "LAZY", "DOG")
.filter(_.length % 2 != 0)
.map(_.toLowerCase)
list.foreach(println)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment