Line 11 should be
Also, whenever you get errors , try to decode what they are saying....
error interface is expected here. tries to convey you that Java Compiler is expecting Interface here and hence you are not using an Interface .
Also, try to use the
IDE feature of creating scaffolding for you.
Not sure for how it is done in IntelliJ but the idea is to command IDE to create a Servlet and not class.