- Type[] parameters = method.getGenericParameterTypes();
- //Type[] parameters = methods[0].getGenericParameterTypes();
- for (int i = 0; i < parameters.length; i++) {
- System.out.println(parameters[i]);
- }
- System.out.println();*/
+ System.out.println(cursor);
+ if (cursor == len)
+ throw new NumberFormatException("Zero length BigInteger");
+
+ // Skip leading zeros and compute number of digits in magnitude
+ while (cursor < len &&
+ Character.digit(val.charAt(cursor), radix) == 0) {
+ cursor++;
+ }
+
+ if (cursor == len) {
+ signum = 0;
+ //mag = ZERO.mag;
+ //mag = null;
+ return;
+ }
+
+ numDigits = len - cursor;
+ signum = sign;
+
+ long numBits = ((numDigits * bitsPerDigit[radix]) >>> 10) + 1;
+ if (numBits + 31 >= (1L << 32)) {
+ System.out.println("Overflow!");
+ }
+ int numWords = (int) (numBits + 31) >>> 5;
+ int[] magnitude = new int[numWords];
+
+ // Process first (potentially short) digit group
+ int firstGroupLen = numDigits % digitsPerInt[radix];
+ if (firstGroupLen == 0)
+ firstGroupLen = digitsPerInt[radix];
+ int cursor2 = cursor + firstGroupLen;
+ String group = val.substring(cursor, cursor2);
+ magnitude[numWords - 1] = Integer.parseInt(group, radix);
+ if (magnitude[numWords - 1] < 0)
+ throw new NumberFormatException("Illegal digit");*/
+