Pare de retornar NULL, use OPTIONAL do JAVA 8!

Java 8 has a new, extremely useful class: Optional! It allows you to create methods that don't return 'null', making programming much easier for those calling your method! In this video, I show the main methods of this class using a practical example! 🟢 Support the channel! Become a member to help us continue creating more free courses! Ā Ā Ā /Ā @rinaldodevĀ Ā  LINK TO THE FREE GUIDE: https://rinaldo.dev/java6para8 Lambda Functions:    • EntendaĀ FACILMENTEĀ funƧƵesĀ LAMBDAĀ doĀ JAVAĀ ...Ā Ā  Streams (Part 1):    • REDUZAĀ usoĀ deĀ ā€˜for’,Ā useĀ STREAMSĀ eĀ simplif...Ā Ā  Streams (Part 2):    • REDUZAĀ usoĀ deĀ 'for',Ā useĀ STREAMSĀ eĀ simplif...Ā Ā  Want access to content to improve your code?! 🟄 Subscribe to the channel: https://www.youtube.com/rinaldodev?su... Follow me on other networks: šŸ”ø Twitter: Ā Ā /Ā rinaldodevĀ Ā  šŸ”ø LinkedIn: Ā Ā /Ā rinaldodevĀ Ā  šŸ”ø GitHub: https://github.com/rinaldodev šŸ”ø Website/Blog: https://rinaldo.dev šŸ”ø Facebook: Ā Ā /Ā rinaldodevĀ Ā  šŸ”ø Twitch: Ā Ā /Ā rinaldodevĀ Ā  Questions or suggestions? Leave a comment! Did you learn something from this video? Then share it with other developers! šŸ–¤ Code on GitHub: https://github.com/rinaldodev/java8-l... Music: https://www.bensound.com