fork(32) download
  1. class Ideone {
  2. public static void main (String[] args) {
  3. for (int num = 0; num <= 26; num++) {
  4. System.out.printf("%2s %2s %2s%n",
  5. Integer.toString(num, 10),
  6. Integer.toString(num, 26),
  7. toAlphabeticRadix(num)
  8. );
  9. }
  10. }
  11.  
  12. public static String toAlphabeticRadix(int num) {
  13. char[] str = Integer.toString(num, 26).toCharArray();
  14. for (int i = 0; i < str.length; i++) {
  15. str[i] += str[i] > '9' ? 10 : 49;
  16. }
  17. return new String(str);
  18. }
  19. }
Success #stdin #stdout 0.05s 711168KB
stdin
Standard input is empty
stdout
 0  0  a
 1  1  b
 2  2  c
 3  3  d
 4  4  e
 5  5  f
 6  6  g
 7  7  h
 8  8  i
 9  9  j
10  a  k
11  b  l
12  c  m
13  d  n
14  e  o
15  f  p
16  g  q
17  h  r
18  i  s
19  j  t
20  k  u
21  l  v
22  m  w
23  n  x
24  o  y
25  p  z
26 10 ba