Java StringBuilder setCarat
StringBuilder str = new StringBuilder("ABCD");
// set char at index 2 to 'L'
str.setCharAt(2, 'L');
Black Batfish
StringBuilder str = new StringBuilder("ABCD");
// set char at index 2 to 'L'
str.setCharAt(2, 'L');