Загрузка...

Learn Java Programming - Lambda Expressions: Code Block Tutorial

In my Introduction to Lambda Expressions tutorial I demonstrated a simple form of a lambda expression that evaluated a single expression. What if we need to execute multiple statements inside of our lambda expression and return a value based on some logic? We can do this by simply putting in a code block body to the right of the lambda operator. I'll show you how.

Видео Learn Java Programming - Lambda Expressions: Code Block Tutorial автора Java Рефакторинг
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки