I'm going through the Rings section of Abstract Algebra by Dummit and Foote, and I have a question about an early Corollary's proof.
Proof: Let R be a finite integral domain and let a be a nonzero element of R. By the cancellation law the map x->ax is an injective function. Since R is finite this map is also surjective...
How does R being finite make the map surjective?