It is a simple add method with only 5 or 6 lines of code. I want it to accept input like this : -30 and the second number would also have the sign (for example + 20) and the add method will give the answer with the positive or negative sign with it. (-10)
The following are hints given: It should have an if statement. This add method determines what number greater than or less than the other number, than it adds the positive or negative. I think this should be a private method.
The code should pattern after b1=b2+b3, ex: b1= b2add(b3) (not b1=add(b2,b3). It should add arrays and array lists. (It has been said that this add method doesn't technically add at least until the end but focuses on the signs.(pos or neg)) Also I would like it to accept the numbers from the keyboard, not have them assigned in there.