TIL: Java stuff

Java Lambda as parameter First you need an interface Then declare the operation (note that you don’t need to define “apply”, just use the interface name. “apply” can actually be anything, as you’ll call it later Ec2Operation startInstance = (ec2,…