Created
August 12, 2015 07:41
-
-
Save jmaciasluque/0275055a7ce885a2e366 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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