Skip to content

Instantly share code, notes, and snippets.

@jmaciasluque
Created August 12, 2015 07:41
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jmaciasluque/0275055a7ce885a2e366 to your computer and use it in GitHub Desktop.
private def exercise1() {
val result = new StringBuilder()
List("alpha", "bravo", "charlie", "delta", "echo", "foxtrot")
.foreach(word => result.append(word.charAt(0)))
println(result)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment