Problem #458 C++ using OBJECT ORIENTED PROGRAMMING

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.

Your Solution