Return to Snippet

Revision: 26638
at May 5, 2010 06:17 by alejandrosuch


Initial Code
public String calcularLetraDNI(int dni){
	String[] letrasDNI = {"T", "R", "W", "A", "G", "M", "Y", "F", "P", "D", "X", "B", "N", "J", "Z", "S", "Q", "V", "H", "L", "C", "K", "E"};
	return (letrasDNI[dni%23]);
}

Initial URL

                                

Initial Description

                                

Initial Title
Calcular letra del DNI

Initial Tags

                                

Initial Language
Java