List of utility methods to do Char Array to Long
long | charArrayToLong(char[] bi) char Array To Long long len = bi.length; long sum = 0; long tmp, max = len - 1; for (int i = 0; i < len; ++i) { tmp = bi[i] - '0'; sum += tmp * Math.pow(2, max--); return sum; ... |