so not sure what I need to do to pass the last condition was hoping someone had some insight on the subject. Thanks in advance : )
package com.codegym.task.task25.task2501;
/*
New functionality!
*/
public class Solution {
public static void main(String[] args) {
System.out.println(Alphabet.G.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() {
//System.out.println(Alphabet.this.toString());
String s = Alphabet.this.toString();
byte[] bytes = s.getBytes();
int i = bytes[0]-64;
return i;
}
}
}