Is there a neater way for getting the number of digits in an int than this method?
int numDigits = String.valueOf(1000).length();
simple solution:
public class long_length { long x,l=1,n; for (n=10;n