Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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);
    }

}