Skip to content

Instantly share code, notes, and snippets.

public class TrashInfo {
// the general category of the trash, should be one of cash-for-trash, e-waste, second-hand-goods
private String trashType;
// detailed price info, with key-value pair of trashName-PriceInfo(unit, pricePerUnit)
private HashMap<String, PriceInfo> trashPrices = new HashMap<>();
public void setTrashType(String trashType) {
this.trashType = trashType;
}