diff --git a/src/History.java b/src/History.java new file mode 100644 index 0000000..fcd9b7c --- /dev/null +++ b/src/History.java @@ -0,0 +1,16 @@ +import java.util.*; + +public class History { + private Total total; + private List value = new ArrayList<>(); + public void updatePayment(int payment) { + this.value.add(0, payment); + total.updateHistory(value); + } + public History(Total total) { + this.total = total; + } + public List getValue() { + return value; + } +} \ No newline at end of file