public class SuperfastRunnable implements Runnable {
// Required to implement
public void run() {
// Do something
}
}
public static void main(String[] args) {
// code..
SuperfastRunnable sfr = new SuperfastRunnable();
// code..
}
Code Block
language
java
title
Anonymous RunableRunnable
public static void main(String[] args) {
// code..
Runnable r = new Runnable() {
// Required to implement
public void run() {
// Do something
}
};
// code..
}