Java Compilation: Catching errors

I cannot understand how to do the first part of instructions. It says In the terminal, type this command: javac

Can someone point out where to type this because I am confused? What terminal? I typed it everywhere I could and it wont work. Link to exercise:

The red arrow is where you type terminal commands. Happy Coding!