part1
Class Utilities

java.lang.Object
  extended bypart1.Utilities

public class Utilities
extends java.lang.Object


Method Summary
static java.math.BigInteger combine(java.util.AbstractList l, java.math.BigInteger m)
          A method to combine a list of big integers produced by split().
static java.lang.String intToString(java.math.BigInteger x)
          A method to convert a positive big integer created by stringToInt() into a string.
static java.util.AbstractList split(java.math.BigInteger x, java.math.BigInteger m)
          A method to split a positive big integer x into a non-empty list of big integers representing the number to the base m.
static java.math.BigInteger stringToInt(java.lang.String s)
          A method to convert a string into a positive big integer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

stringToInt

public static java.math.BigInteger stringToInt(java.lang.String s)
                                        throws java.lang.Exception
A method to convert a string into a positive big integer.

Throws:
java.lang.Exception

intToString

public static java.lang.String intToString(java.math.BigInteger x)
                                    throws java.lang.Exception
A method to convert a positive big integer created by stringToInt() into a string.

Throws:
java.lang.Exception

split

public static java.util.AbstractList split(java.math.BigInteger x,
                                           java.math.BigInteger m)
                                    throws java.lang.Exception
A method to split a positive big integer x into a non-empty list of big integers representing the number to the base m.

Throws:
java.lang.Exception

combine

public static java.math.BigInteger combine(java.util.AbstractList l,
                                           java.math.BigInteger m)
                                    throws java.lang.Exception
A method to combine a list of big integers produced by split().

Throws:
java.lang.Exception