Course contentsShow
Java
Lesson 606 of 2,87014. EnumerationsPro lesson

The ordinal() Method: Zero-Based Enum Indexing

Learn how ordinal() returns the enum constant's position in its declaration order, starting from zero.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.