I would like to show that ring of order $p^2$ is commutative.
Taking $G=(R, +)$ as group, we have two possible isomorphism classes $\mathbb Z /p^2\mathbb Z$ and $\mathbb Z/ p\mathbb Z \times \mathbb Z /p\mathbb Z$.
Since characterstic must divide the size of the group then we have two possibilities $p$ and $p^2$.
Now IU don't understand how can I reason to say that the multiplication is commutative and how can I conclude for the case when characterstic is $p$?
Let $R$ be a ring with $p^2$ elements, let $x \in R$, we have to show that $Z(x) = \{r \in R : xr=rx\}$ coincides with $R$. It is an additive subgroup, even a subring, and therefore has order $p$ or $p^2$. In the latter case we are done. Assume that it has order $p$. Every ring of order $p$ is canonically isomorphic to $\mathbb{Z}/p$. It follows that $x=z \cdot 1$ for some $z \in \mathbb{Z}$. But then obviously $Z(x)=R$.
For rings without unit, also called rngs, this fails: There are $11$ rngs with $p^2$ elements. Two of them are non-commutative, namely $E=\langle a,b : pa=pb=0, a^2=a, b^2=b, ab=a, ba=b \rangle$ and $F = \langle a,b : pa=pb=0, a^2=a, b^2=b, ab=b, ba=a\rangle.$