I created a JavaClass that creates the add-on, sub, mult. and etc.
And the numbers are similar (155 ^ 199 [+, -, /] 555 ^ 669 [+, -, /] ..... [+, -, *, /] x ^ n);
each number is stored in a byte array, and a byte array can contain max. 66.442
Example:
(byte) array = [1] [0] + [9] [0] = [1] [0] [0]
(byte) array = [9] [0] * [9] [0] = [1] [8] [0] [0]
My Class file does not work if the number is greater (example: 999 ^ 999)
How can I solve this problem to make an addition between much larger numbers?
When the byte array reaches 66.443, the VM gives this error:
Caused by: java.lang.ClassNotFoundException . which is not really the correct description of the error.
Well, this means that if I have a byte array with values of 66.443, the class cannot read correctly.
Solved:
A multidimensional byte array is used to solve this problem.
array {array, ... nth-array} [+, -, /] nth-array {array, ... nth-array}
just a few seconds to make an addition between large numbers.
Thank!