Learning Java: Part 23: Enumerations

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

In this tutorial I will teach you how to use enumerations in Java, which are essentially variables that easily allow the programmer to keep track of certain things.

Thanks for watching!

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

Yay! Are you going to continue the game development tutorial?

iambored
Автор

Ye another great video. I loved the main(args) reloop trick. Very nice.

mucktada
Автор

Here's a tip: You don't have to import everything yourself, if you press control+shift+O Eclipse will import everything you need for you.

shieldkirby
Автор

whoo. thanks, on my way to 31....

i did some enumerations, we had    typedef enum{  .. blah   blah  ...   }

mattdathew
Автор

I still think 
public enum Enumerations {
    PRINT_PI;
    //etc…
}
is better.

stephenhuang
Автор

The tutorial is not correct, the correct use of enumeration is not explained here.

Maheshkumar
Автор

This is a completely misleading tutorial. The following tutorial does not talk about Enumerations feature of Java. It in fact a best practice tutorial to encapsulate all the hard coded values in one class as final member variables and have them referred in the code. Please change the title of the video.

ChaitanyaKarmarkar