Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

hi, I need help in reading a very large number from user input without using the

ID: 3541242 • Letter: H

Question

hi, I need help in reading a very large number from user input without using the BigInteger class from java. The class needs to have a constructor that would read the input from the main class. The main class is something like this:

BigInt x = new BigInt("27549283294857673145");

The BigInt class should:

*store the string from the main class into an ArrayList

*check weather the input is valid (no characters, no double zeros, appropiate minus signs)

*be able to output back the number

*perform addition and subtraction with the numbers that will be entered from the main class



Explanation / Answer


http://web.eecs.utk.edu/~bvz/cs365/examples/datacheck.html