I need to implement a recursive method printDigits that takes an integer num as a parameter and prints its digits in reverse order, one digit per line.
This is what
public void reverse(int num){ System.out.print(num %10); if(num / 10 == 0){ return; } reverse(num /10); return; }