hi, I need help in reading a very large number from user input without using the
ID: 3541244 • 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
M doing it. Have a doubt. Why do you want to store the number into arraylist. As we are not using it any further.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.