该方法可以采取两个参数,其中一个是String,另一个是基数。 使用语句:int numberOfDigits = String.valueOf(n).length();。 二、使用对数方法:. java.
確定! 回上一頁