int length = String. ... int n = 1000; int length = (int)(Math.log10(n)+1); ... 编辑:在我编写基准测试之后,我从Java 6中获得了Integer.
確定! 回上一頁