Skip to content

Instantly share code, notes, and snippets.

@bdulac
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bdulac/d29a5c650ae3f8868c2e to your computer and use it in GitHub Desktop.
Save bdulac/d29a5c650ae3f8868c2e to your computer and use it in GitHub Desktop.
A sample of Runnable lambda expression
public class LambdaRunnableSnippet {
public static void main(String[] args) {
Thread t =
new Thread(
() -> {testFunction();}
);
t.start();
}
static private void testFunction() {
System.out.println("test");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment