[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/BruceEckel/OnJava8-Examples/master/onjava/Operation.java [Back]  [Original]

// onjava/Operation.java
// (c)2021 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information.
package onjava;

public interface Operation {
  void execute();
  static void runOps(Operation... ops) {
    for(Operation op : ops)
      op.execute();
  }
  static void show(String msg) {
    System.out.println(msg);
  }
}

Web Proxy Viewer  |  New URL  |  Original Page