Code ascii
Résolu
helloworld95
-
helloworld95 -
helloworld95 -
Bonjour,
J'aimerai associer la premiere lettre d'un nom avec l'indice d'une table.
Ex: a ----> 0
b ----> 1
.........
z----->25
J'ai donc fait
Je ne sais pas comment faire..
Merci
J'aimerai associer la premiere lettre d'un nom avec l'indice d'une table.
Ex: a ----> 0
b ----> 1
.........
z----->25
J'ai donc fait
int indice = (int)nom.charAt(0)mais j'ai le code ASCII donc ca ne correspond pas.
Je ne sais pas comment faire..
Merci