Newer
Older
POS_for_GUI / src / resources / History.java
student on 4 Apr 2022 351 bytes [add]featuring to generate window
package resources;
import java.util.*;

public class History {
	private Total total;
	private List<Integer> 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<Integer> getValue() {
		return value;
	}
}