Pour accéder aux caractères individuels d'une chaîne en Java, nous avons String.charAt(2). Existe-t-il une fonction intégrée pour supprimer un caractère individuel d'une chaîne en java?
Quelque chose comme ça:
if(String.charAt(1) == String.charAt(2){
//I want to remove the individual character at index 2.
}
couplede substringet indexOf. Mais cela créera un nouvel objet string.
