Before the loop,
double total = 0;
and then in the loop (after you calculate the amount)
total += amt;
and finally after the loop, something like
System.out.printf("The total is %.2f%n", total);
solved How to take the sum of elements from a for loop?