Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 

Code Block
languagejava
titleRunable
linenumberstrue
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
languagejava
titleAnonymous Runable
public static void main(String[] args) {
	 	
	// code..	

	Runable r = new Runable() {
		public void run() {
			// Do something
		}
	};
 
	// code..
} 

 

...