StringBuilder str = new StringBuilder(); str.append("abcdef"); str.setCharAt(3, Character.toUpperCase(str.charAt(3)));
Output result: abcDef
There may be a better way ...
Recommended Posts