Limit of $x^2$ with a discontinuity at $x=3$.

Problem: 

What is
\begin{equation}
\lim_{x\to 3}\,f(x)
\end{equation}
where
\begin{equation}
f(x)=\left\{
\begin{array}{r@{\quad\quad}l}
x^2, & x\lt 3\\
1, & x=3\\
x^2, & x>3\\
\end{array}
\right.
.
\end{equation}

Answer: 

9