package main; public class WineBottle { private String name, vineyard, country, region, variety, date_added, imageName; private int vintage, price, size; boolean selected; public WineBottle(String name, String vineyard, int vintage, String country, String region, String variety, String date_added, int size, int price, String imageName) { this.name = name; this.vineyard = vineyard; this.vintage = vintage; this.country = country; this.region = region; this.variety = variety; this.price = price; this.size = size; this.imageName = imageName; selected = false; date_added = (date_added.substring(5)+"-"+date_added.substring(0, 4)).replace('-', '/'); this.date_added = date_added; } public String getName() { return name; } public String getVineyard() { return vineyard; } public int getVintage() { return vintage; } public String getCountry() { return country; } public String getRegion() { return region; } public String getVariety() { return variety; } public String getDateAdded() { return date_added; } public int getSize() { return size; } public int getPrice() { return price; } public String getImageName() { return imageName; } public boolean isSelected() { return selected; } public void select() { selected = true; } public void unselect() { selected = false; } }