-
This is the second solution to find the length of a given primitive int data type value. This approach converts int value to string, and then applies the length method.
-
Look at the first solution to find the length of a given integer which is a primitive datatype. This approach is based on the core logic without using any built-in methods.
