java 字符串首字母小写转大写


public static String convertToCapitalLetter(String seq,int index)
{
if(index >= seq.length())
{
throw new IndexOutOfBoundsException();
    }
char[] chars = seq.toCharArray();
chars[index] -=32;
return String.valueOf(chars);
}

你可能感兴趣的:(Java,学习)