int index = (int) Math.rint((r+g+b) / 96);
int index = (int) Math.rint((r+g+b) / 96.0);
    private char encodeARGB (int argb)    {        int r = (argb & 0x00ff0000) >>> 16;        int g = (argb & 0x0000ff00) >>> 8;        int b = (argb & 0x000000ff);        int index = (int) Math.rint((r+g+b) / 96);        return charTable[index];    }