вроде все как просят...
package com.javarush.task.task25.task2501;
/*
Новые возможности!
*/
public class Solution {
public static void main(String[] args) {
System.out.println(Alphabet.A.getLetterPosition());
}
public enum Alphabet {
A, B, C, D, E,
F, G, H, I, J,
K, L, M, N, O,
P, Q, R, S, T,
U, V, W, X, Y, Z;
int getLetterPosition() {
Alphabet alphabet = Alphabet.A;
int index = alphabet.ordinal();
return index;
}
}
}