Skip to content

Instantly share code, notes, and snippets.

@wkdalsgh192
Last active August 19, 2021 11:40
Show Gist options
  • Save wkdalsgh192/eceb8cc1aaec06b6d6c0dba54158ac48 to your computer and use it in GitHub Desktop.
Save wkdalsgh192/eceb8cc1aaec06b6d6c0dba54158ac48 to your computer and use it in GitHub Desktop.
Thread thread = new Thread(() -> {
try {
Thread.sleep(1000L);
} catch (InterruptedException e) {
e.printStackTrace();
}
System.out.println("Thread : "+ Thread.currentThread().getName());
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment