Skip to content

Instantly share code, notes, and snippets.

@davidtsong
Created May 26, 2014 21:31
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 davidtsong/a12c70c04d14a8f42d80 to your computer and use it in GitHub Desktop.
Save davidtsong/a12c70c04d14a8f42d80 to your computer and use it in GitHub Desktop.
Create a thread by implementing a runnable
public interface Runnable{
public void run();
}
public class MyRunnable() implements Runnable
{
public void run()
{
//Todo Code here
}
}
MyRunnable MyRunnable = new MyRunnable();
new Thread(MyRunnable).start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment