We want to implement a method that reverses the digits in an integer. For example, reverseDigits(3456) should yield 6543.

Use this approach: Combine reverseDigits(345) = 543 and the remainder 6 into 6543. This requires to multiply 6 with 103, the number of digits in 543.

Complete the following file:

MyMethods.java

public class MyMethods { public static int reverseInt(int value) { . . . } public static int powerOfTen(int exponent) { if (exponent <= 0) return 1; else return 10 * powerOfTen(...); } public static int numberOfDigits(int value) { if (value < 10) return 1; else return 1 + numberOfDigits(...); } }