fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. for(char c = 'A'; c <= 'Z'; c++) {
  13. System.out.printf("%c - %d%n", c, c - 'A' + 10);
  14. }
  15. }
  16. }
Success #stdin #stdout 0.05s 4386816KB
stdin
Standard input is empty
stdout
A - 10
B - 11
C - 12
D - 13
E - 14
F - 15
G - 16
H - 17
I - 18
J - 19
K - 20
L - 21
M - 22
N - 23
O - 24
P - 25
Q - 26
R - 27
S - 28
T - 29
U - 30
V - 31
W - 32
X - 33
Y - 34
Z - 35