[Tex/LaTex] Simple expression throws “Undefined control sequence”

math-mode

I have a simple expression in my text which refuses to compile and I don't know why:

...\textit{isInterestedIn(Class$\<$? extends ContentChange$\>$ changeClass)}...

The complete error statement goes like this:

! Undefined control sequence.
<recently read> \<
l.298 ...? extends ContentChange$\>$ changeClass)}
mit einem der \textit{Tex...
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

I don't really understand, what's the problem here.

Best Answer

The command (called control sequence) \< is unknown. \ means the start of a control sequence. Write $<$ or $\backslash<$ instead, the latter if you really need a backslash .

Related Question