Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
private void exercise5() {
new Thread(
() -> Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
.forEach(System.out::print))
.start();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment