Salut!:D
On peut lire dans la javadoc:
Pourtant:Citation:
Strings are constant; their values cannot be changed after they are created.
est tout à fait valide.Code:
1
2
3
4 String s1="azerty"; s1="az"; s1="azertyuiop"; s1=s1.replace('a','b');
Que signifie exactement le terme "constant" et "cannot be changed".
Merci de vos explications.:D