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