@@ -0,0 +1,723 @@
+public class StrategyExample %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09Context context;%0A%0A%09%09context = new Context(FunctionalUtils.add);%0A%09%09final int resultA = context.executeStrategy(3,4);%0A%0A%09%09context = new Context(FunctionalUtils.subtract);%0A%09%09final int resultB = context.executeStrategy(3, 4);%0A%0A%09%09context = new Context(FunctionalUtils.multiply);%0A%09%09final int resultC = context.executeStrategy(3, 4);%0A%0A%09%09context = new Context((final Integer a, final Integer b) -%3E a * b + 1);%0A%09%09final int resultD = context.executeStrategy(3,4);%0A%0A%09%09System.out.println(%22Result A: %22 + resultA );%0A%09%09System.out.println(%22Result B: %22 + resultB );%0A%09%09System.out.println(%22Result C: %22 + resultC );%0A%09%09System.out.println(%22Result D: %22 + resultD );%0A%09%7D%0A%7D%0A

Create StrategyExample.java