title: How do I convert a number to a letter in Java?
body: <p>Is there a nicer way of converting a number to its alphabetic equivalent than this?</p>
  
  <pre><code>private String getCharForNumber(int i) {
      char[] alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".toCharArray();
      if (i &gt; 25) {
          return null;
      }
      return Character.toString(alphabet[i]);
  }
  </code></pre>
  
  <p>Maybe something than can deal with numbers greater than 26 more elegantly too?</p>