Don’t write for loops in Java anymore! Do this instead!

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Why would this functional approach be better than a for loop? I find the syntax much more difficult to understand at a first glance than using a simple loop with a counter. Is it because of performance? Great videos btw! 🎉🎉

matiassandacz
Автор

But let's say list itself is null in that case this code will throw nullpointrrexception, so we have to do a null check for list. Correct me if I am wrong.

rajnishsingh
Автор

We are waiting tutorial for stream api

ahmedbilal