import java.util.function.Consumer;

public class ConsumerExample {
    public static void main(String[] args) {
        Consumer<String> consumer = s -> System.out.println("Consumed: " + s);
        consumer.accept("Hello, Consumer!");
    }
}
