Answer:
System.out.println(value % 10);
printReverse(value / 10);
Explanation:
System.out.println(value % 10);
To print the last digit, we print the value modulo 10 as the result of the value modulo 10 gives us the last digit.
printReverse(value / 10);
To call the recursive method again without the last digit, we now pass the result of dividing the value with 10 inside the printReverse method as parameter. The division by 10 will remove the last digit from the value and result will be the remaining digits.