| Constructor and Description | 
|---|
UnsignedBigInt(long a)  | 
UnsignedBigInt(java.lang.String a)
This is a constructor that construct an AdditionOnlyInt with value presented 
 by the input string. 
 | 
UnsignedBigInt(UnsignedBigInt a)
Copy constructor; a deep copy should be performed. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static UnsignedBigInt | 
add(UnsignedBigInt a,
   UnsignedBigInt b)  | 
void | 
div(BigInt ub,
   BigInt ur)
Students don't have to implement this method for Asg3. 
 | 
static UnsignedBigInt | 
div(UnsignedBigInt a,
   UnsignedBigInt b,
   UnsignedBigInt r)  | 
void | 
div10()
Shift on digit to the right 
 | 
static UnsignedBigInt | 
subtract(UnsignedBigInt a,
        UnsignedBigInt b)  | 
void | 
times(BigInt ua)
Students don't have to implement this method for Asg3. 
 | 
static UnsignedBigInt | 
times(UnsignedBigInt a,
     UnsignedBigInt b)  | 
void | 
times10()
Shift on digit to the left 
 | 
void | 
timesD(byte x)
Times a single digit x, where x must < 10 
 | 
public UnsignedBigInt(java.lang.String a)
a - is a string such as "00012340"public UnsignedBigInt(long a)
public UnsignedBigInt(UnsignedBigInt a)
a - UnsignedBigInpublic void times10()
public void div10()
public static UnsignedBigInt add(UnsignedBigInt a, UnsignedBigInt b)
public static UnsignedBigInt subtract(UnsignedBigInt a, UnsignedBigInt b)
public void timesD(byte x)
x - is a single digit numberpublic void times(BigInt ua)
AdditionOnlyInttimes in interface BigInttimes in class AdditionOnlyIntua - is the multiplierpublic static UnsignedBigInt times(UnsignedBigInt a, UnsignedBigInt b)
a - is an UnsignedBigIntb - is an UnsignedBigIntpublic void div(BigInt ub, BigInt ur)
AdditionOnlyIntdiv in interface BigIntdiv in class AdditionOnlyIntub - is the divisor.ur - is a place for remainder.public static UnsignedBigInt div(UnsignedBigInt a, UnsignedBigInt b, UnsignedBigInt r)
a - UnsignedBigIntb - UnsignedBigInt divisorr - remainder  (a % b)