Versions Compared

Key

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

...

 

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

	Runnable r = new Runnable() {
		
		// Required to implement
		public void run() {
			// Do something
		}
	};
 
	// code..
} 

 

...