Written by the Fiveable Content Team โข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโขWritten by the Fiveable Content Team โข Last updated September 2025
Definition
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.