To extend a class, simply put extends after Class name and then the name of the class to extends. Example: public class Main extends ClassToExtends {}