数字序号转为字母序号

虽然简单,备用起来,方便使用

/**
     * 获取数字序号对应的字母
     * @param index
     * @return
     */
    private static String getLetter(int index){
        if(index >=0 && index < LETTER.length){
            return LETTER[index];
        }
        return "#";
    }

    private final static String[] LETTER = {
            "A", "B", "C", "D", "E", "F", "G",
            "H", "I", "J", "K", "L", "M", "N",
            "O", "P", "Q", "R", "S", "T",
            "U", "V", "W", "X", "Y", "Z"};

猜你喜欢

转载自blog.csdn.net/lin_dianwei/article/details/79374919