I have a program called public class ZeroCounter {. I want to add a new method to it called numberOfDigits() and add a line to test it in the main() method. How should I go abo
public class ZeroCounter {
public static int numberOfDigits(int number) {
//- Implementation goes here.
}
public static void main(String[] args) {
int number;
//- Initialize number variable.
System.out.println("numberOfDigits(" + number + ")=" + numberOfDigits(number));
}
}