One of the problems you have way too much logic inside your main method.
Other problem is you pass everything around static method. It is not how you are supposed to write OO code.
Third problem is each of those methods is public. Only declare public what needs to be public.
William Nyqvister wrote:Does anyone see the problem? '
Ditto to Pawel's advice.
The problem appears to be the makeTransactions calls in lines 30 and 46. No matter what is input, the amount variable contains 0. That is, the net change amount of each transaction isn't being passed, so it isn't stored in the trans array.
A feeble attempt to tell you about our stuff that makes us money