State true or false
$(1)$If $f$ is a one-one mapping from set $A$ to set $A$,then $f$ is onto.
$(2)$If $f$ is an onto mapping from set $A$ to set $A$,then $f$ is one-one.
I do not understand whether it is true or false.If true,why true.If false,why false.No concrete reasoning,example and counterexample comes to my mind.Please help me.Thanks.