package com.iluwatar.callback;

/**
 * 
 * Callback pattern is more native for functional languages where functions are treated as
 * first-class citizens. Prior to Java 8 callbacks can be simulated using simple (alike command)
 * interfaces.
 * 
 */
public class App {

  /**
   * Program entry point
   */
  public static void main(String[] args) {
    Task task = new SimpleTask();
    Callback callback = new Callback() {
      @Override
      public void call() {
        System.out.println("I'm done now.");
      }
    };
    task.executeWith(callback);
  }
}

@@ -406,75 +406,13 @@
 k = 
-new Callback() %7B%0A      @Override%0A      public void call() %7B%0A       
+() -%3E
  Sys
@@ -449,23 +449,8 @@
 %22);%0A
-      %7D%0A    %7D;%0A
     

Change callback to lambda expression