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
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.