Java Enum Tutorial #96

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

Here's how to make an enum in java and how to use your enum.

The java enum can be tricky at first... But SURELY you'll get it :) If you followed along, congrats! You learned by-doing!

I hope you enjoyed this java enum tutorial! I like to have a nice mix of java tutorials and actual projects for you all :)

Was this able to help you learn the java enum? -

Disclosure: The Springboard link provided is linked to my affiliate account & supports the channel.

~

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

Thanks yet again! My notes below in case they are of help to others in a hurry:
0:40 Making and naming a new class
1:05 Enum explained in brief
1:15 Starting by creating an array
1:45 Nice tip on static keyword
2:00 Converting array into an enum
2:10 Enum example outside of a class
2:45 Resolving errors when working with 'labels - don't use strings
3:25 Convention for enums - all upper-case
3:45 How to access a label in a enum
4:15 Test run - prints name of the label
4:40 Changing name of enum to title case for convention best practice
5:00 Why to use an enum (like an array but for constant values, cleaner)
5:35 Example use case with a computer game level
5:48 What a switch case is (in brief)
6:40 Enum example inside a class, with a list that doesn't change (constants)
7:10 Formatting not an issue for labels. Using upper case for names.
7:45 Distinction between object and enum – use enumName.LABEL for enum
8:05 If statement to test
8:48 Test run
8:55 Recap of enums and use cases

latedeveloper
Автор

You continue to save me everytime we start something new in college

jamescalvert
Автор

Hey Alex, your videos are always amazing! You break things down into their simplest form and you're of tremendous value to the community. Keep up the good work; We thank you!!!

Kurokage
Автор

7:43 "Name it something like Flavor flav"

Instant like.

Dixus
Автор

Thank you for this video! Very *clean* and helpful.
I’ve watched two others before yours and they didn’t make the concept any easier. Yours did! Cheers!

eatliftpolskarepeat
Автор

I was going to do a flutter tutorial but got side tracked and started doing this instead. you're a good teacher - hopefully we get some back-end tutorials!

mtaylor
Автор

Your videos are so informative while also being very entertaining.. I love your vids man

ritamch
Автор

Whenever I'm stuck, I search for you video. Great job man!! Way better than my teacher.

BikashAdhikari
Автор

Thanks for making this easier, I’m taking Computer Science as well!!! I really appreciate this tutorial!💕

caia
Автор

Amazing. You saved me so much head scratching and googling.
Thank you!

davidevans
Автор

Hey I am 12 years old and my fav language is c++ and java. love your vids. You explain good and clearly. Keep it up :)

wk
Автор

Thank you. This helped me in the enum chapter. I was struggled to understand it before.

yuiwayui
Автор

Great video! I really enjoy the content!

LZbuilder
Автор

Coincidentally I had a lecture today about enums in java lol

kishanmistry
Автор

Your explanations are extremly good!!!

rafa_
Автор

Thank you so much Alex for effort, pls keep going!...

hasancete
Автор

i'm actually amazed how easely you can spread knowledge with such quality.... I couldn't understand my professor in college, but I could easily underrstandd your video... thanks Alex 😍 😍 😍

weslleyfelix
Автор

just asked me about this in entry level coding interview thanks alex you are the real mvp

keeprunning
Автор

Thank you Alex! I enjoy your explanations!!!

PP-hnvq
Автор

love your videos.. good teaching skills

pravincallychurn