The printDigits method is a void (no return value) method that takes an integer parameter n. It prints out each digit of n one by one, separated by spaces.
Related terms
Void Method: A void method does not return any value after completing its operations.
Parameter: A variable or value passed into a function or procedure.
Call/Invoke: To execute or run a particular piece of code.