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
Смотрите видео Java Tutorial 7: Working with constants, also known as enumerations (enum) онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Dr. Todd Wolfe Technology Training and Tutorials 26 Январь 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 251 раз и оно понравилось 5 людям.