Enum data type - Basic Java Fast (33)

preview_player
Показать описание
We can declare an enum data type to indicate a group of constants. We can list these constants in an array. Also, we can show the ordinal number of these constants.

You'll learn most by trying my code while watching the video.

0:37 - Declare enum data type
5:08 - values() method
6:39 - ordinal() method

Playlist of my Java course

Playlist of my Java examples
Рекомендации по теме