-1
What is the best way to calculate values in java? I need to make a method that returns the sum of all inputs and output and subtraction. Example: Insert all Double entries in column X, and all Double output in column Y (get the total of each column), to get the balance of the day, which is Input subtracted by Output and find the subtTotal, which is the current balance plus the day balance. If you have any examples you are welcome.
I thought and use a looping for, but I don’t know how to do it! Can someone help me, please!