java resto

Solutions on MaxInterview for java resto by the best coders in the world

showing results for - "java resto"
Julián
25 Aug 2017
1char calculaLetra(int dni) 
2{ 
3    String juegoCaracteres="TRWAGMYFPDXBNJZSQVHLCKE"; 
4    int modulo= dni % 23; 
5    char letra = juegoCaracteres.charAt(modulo); 
6    return letra; 
7}
8