Here\'s what I got. A linkedList of objects of Customer class of different account types (Savings,current and fixed). Each Customer object has a LinkedList of transactions(anoth
Your code has trans.getItem(i).AccType.equals("Crebit")
in two places. Presumably that should be Credit. If the value of the AccType field of the transaction items is using the correct spelling, then your if
blocks won't "see" the credit transactions when computing the interest and that could lead to a wrong answer.