Java tutorial
import java.util.function.Consumer; public class Main { public static void main(String[] args) { sayBrand(e -> System.out.println("Car's Brand: " + e), "Audio A6"); } public static void sayBrand(Consumer<String> block, String param) { block.accept(param); } }