天天看點

一些小算法技巧

1:求 int a = 12343455;是一個幾位數?

    答:   String str = String.valueOf(a);

        System.out.println(str.length);