devxlogo

November 1, 2018

Usage of Ordinal in Enum

The ordinal() method on the enum returns the constant. In other words, you can assume this to be the same as index and similar to arrays the index starts with