Java Tutorial 7: Working with constants, also known as enumerations (enum)

Published: 26 January 2023
on channel: Dr. Todd Wolfe Technology Training and Tutorials
251
5

In this tutorial, Dr. Todd Wolfe demonstrates how to handle constants in a Java program. This tutorial shows how to establish a variable to hold constants in an enumeration (enum) and work with them. At the end of this tutorial, you will know how to :

1) Create an enumeration to store constants
2) Set a variable equal to one of the values
3) Loop through the values in the enumeration
4) Check the position (Ordinal) of the variable
5) Compare two variables locations in an enumeration


Watch video Java Tutorial 7: Working with constants, also known as enumerations (enum) online without registration, duration hours minute second in high quality. This video was added by user Dr. Todd Wolfe Technology Training and Tutorials 26 January 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 251 once and liked it 5 people.