Getting Started with Java
This is a 100% free course, but we need you to first join or login to watch this video.Alright, join or login here.
This video introduces the concept of enumerations in Java. Enumerations are a replacement for static final constants as they only accept limited values. You can add constructors, methods to enumerations and loop through their values with a for each loop. Use the valueOf(), values() and name() method in enumerations as needed.