Groups of order p^2 are abelian
Every finite group of order p², for p prime, is abelian.
Proposition. Let be a finite group with for a prime . Then is abelian.
Proof
As a finite -group, has nontrivial center . If , then . Otherwise , so has order and is cyclic by prime-order implies cyclic. A group whose quotient by its center is cyclic is abelian: if is generated by , write and with ; then . Thus is abelian in either case.
Remarks
A common strategy for classifying groups of small order is to show that the center is nontrivial and then pass to the quotient by the center.