public class SecondClass extends FirstClass {
}
//with that you can include the firstclass to the secondclass
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 {}