For non-OOP languages, a custom routine is a function, procedure, or subroutine and for pure OOP languages, a custom routine is a class method. Hybrid languages (both non-OOP and OOP) combine both.
Java Custom Routines
Because java is an OOP language, all custom routines belong to a specific class and are therefore referred to as methods.
All methods in Java must return something so even with procedures, you return a "void".
Syntax Example:
public void sayHello(String pName) { System.out.println("Hello" + pName); }