Decode Ways II




Hi, In the last lined in the below snippet, I believe it should be 17 instead of 15. Since, given that first char is * and second char is *, total no of 2 digit characters are 10,11...26 = 17 (K, L, M, N, O, ....Z)
Please correct if wrong
if (s.charAt(i) == '*') { second = 9 * second; if (s.charAt(i  1) == '1') second = (second + 9 * first) % M; else if (s.charAt(i  1) == '2') second = (second + 6 * first) % M; else if (s.charAt(i  1) == '*') second = (second + 15 * first) % M; }