Java Integer to Char intToChar(int i)

Here you can find the source of intToChar(int i)

Description

int To Char

License

Open Source License

Declaration

private static char intToChar(int i) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    private static char intToChar(int i) {
        if (i < 36)
            return Character.forDigit(i, 36);
        else//w  w  w .ja  va 2s .  co  m
            return Character.toUpperCase(Character.forDigit(i - 26, 36));
    }
}

Related

  1. intToChar(int i)
  2. intToChar(int i)
  3. intToCharacter(int i)
  4. intToChars(int value, char[] chars, int offset)