Er and Onan were sons of Judah, but they died in Canaan.
The sons of Judah: Er, Onan, Shelah, Perez and Zerah (but Er and Onan had died in the land of Canaan). The sons of Perez: Hezron and Hamul.
The descendants of Judah: Perez, Hezron, Karmi, Hur and Shobal.
From the descendants of Judah: All the men twenty years old or more who were able to serve in the army were listed by name, according to the records of their clans and families.