Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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