corda/sgx-jvm/avian/test/Simple.java

12 lines
226 B
Java
Raw Normal View History

public class Simple {
2008-11-02 22:25:51 +00:00
public static int size(long v, int radix) {
int size = 0;
for (long n = v; n != 0; n /= radix) ++size;
return size;
}
public static void main(String[] args) {
2008-11-02 22:25:51 +00:00
size(42, 10);
}
}