bjr,
je voudrais savoir pourquoi on n ecrit pas de "new" ds cet exemple :
String str = "abc";
parce que str contient une constante ?
char data[] = {'a', 'b', 'c'};
String str = new String(data); pourquoi on ecrit "new" ici
pareil pour les tableau
int[] entier ={1,2,3}
int[] entier = new int[] {1,2,3}
Partager