Java Enum - Full Simple Tutorial

preview_player
Показать описание
Learn how to use enum in Java with code examples of all advanced features including constructors, methods, and switch expressions (Java 12). This tutorial explains when to use enums in Java, the benefits that enum provides compared to normal classes, and how to create your own enum.

00:00 Introduction / example use case for enums
01:40 Definition and syntax
02:21 Switch expressions with enums
03:08 Enum::valueOf(String)
03:20 Enums implement Comparable
04:33 Adding methods to enums
05:35 Enum constructors
Рекомендации по теме
Комментарии
Автор

What Java language feature or programming concept would you like me to create a tutorial for next?

jack.hodkinson
Автор

Hey, this was really helpful as a CS student! You are one of the best teachers I've had on youtube, so I'm wondering if will you be uploading anymore?

nefuze
Автор

I would love to see a video on some data structure implementations in Java from you, like Lists and Queues. Loved the video, keep up the good work 👍

AdityaGupta-zvib