Core Java Tutorials

Home Index About

Program 11:

  • Write a Java method to count the number of digits in an integer with the value 2. The integer may be assumed to be non-negative.
  • Input:

    Output: