Número de programa de dígitos en Java

int numOfDigits = ((int) Math.floor(Math.log10(number))) + 1
Fair Finch