Skip to content

Instantly share code, notes, and snippets.

View CesarNog's full-sized avatar
☁️
Developing your Cloud Solution

Cesar Augusto Nogueira CesarNog

☁️
Developing your Cloud Solution
View GitHub Profile
@CesarNog
CesarNog / CalculatorLambda.java
Created March 7, 2013 13:13
Calculator is an example of lambda expressions that take more than one formal parameter.
public class Calculator {
interface IntegerMath {
int operation(int a, int b);
}
public int operateBinary(int a, int b, IntegerMath op) {
return op.operation(a, b);
}