Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
private def exercise5() {
new Thread(new Runnable {
def run() {
List(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
.foreach(print)
}
}).start()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment