A veces, le gustarÃa tener Mapping Char to Int (A = 0, B = 1, etc.)
Una forma fácil de hacerlo es usando indexOf
"ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf('F')
returns 5
Tutoriales, ejemplos y tips sobre programación
A veces, le gustarÃa tener Mapping Char to Int (A = 0, B = 1, etc.)
Una forma fácil de hacerlo es usando indexOf
"ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf('F')
returns 5