(Solved):Design a class named largeIntegers such that an object of this class can store any number of digits. Add operations to add, subtract, multiply, and compare integers stored in two objects. Also add… View Answer…

 

Question

Design a class named largeIntegers such that an object of this class can store any number of digits. Add operations to add, subtract, multiply, and compare integers stored in two objects. Also add constructors to properly initialize objects and functions to set, retrieve, and print the objects.

 

EXPERT ANSWER

You can check the code below:

import java.math.*;
class LargeInteger {
  BigInteger bi;
  LargeInteger(String s) { // constructor
    bi = new

Scroll to top