Please post code in code tags.

What problems are you actually having? If it doesn't compile/run post the compiler/runtime error messages. If it doesn't do what you expect then tell us what the method is supposed to do and what it is actually doing.


Some pointers:

  • It would be easier to implement the methods if you stored each of the digits as an int rather than a char. You can't add 2 chars together as if they are numeric values.
  • Remember each array element must be empty or a single digit so if the result of a digit addition is greater than 9 you need to subtract 10 and carry 1 to the next digit addition. Remember also that some array elements may be null eg if the number has less than 25 digits.
  • When iterating over an array use the array's length property to get the size of the array rather than using a literal value ie use digits.length rather than 25.
  • When checking if 2 arrays are equal to each other you can use a fail fast approach ie as soon as one set of elements are not equal to each other there is no need to check the rest of the elements so you can break out the loop and return false.