Advertisement
Guest User

Untitled

a guest
Feb 19th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. private static final int[] ALPHABET = [
  2. 12, // A is at index 12
  3. 7, // B is at index 7
  4. ...
  5. }
  6.  
  7. int index = ALPHABET[currentCharacter - 'A'];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement