title: How to calculate the no. of digits of a number in java?
body: <p>Is there any single line of code that can be used to calculate the number of digits in a program? I mean to say, can be there a reference to a class (such as String.length for a String) which can be used to calculate the number of digits in a number?</p>