Java ersetzen zweites Zeichen einer Schnur

class Main
{
    public static void main(String[] args)
    {
        String str = "Techie Delight";
        char ch = '_';
        int pos = 6;
 
        StringBuilder sb = new StringBuilder(str);
 
        // replace character at the specified position
        sb.setCharAt(pos, ch);
        str = sb.toString();
 
        // print the modified string
        System.out.println(str);
    }
}
Angry Albatross