class Garment { String name; String status; Garment(String name, String status) { this.name = name; this.status = status; } void wash() { this.status = "soapy"; } void rinse() { this.status = "wet"; } void dry() { if (this.status.equals("wet")) { this.status = "clean"; } } public String toString() { if (this.status.equals("clean")) { return "a " + this.name; } else { return "a " + this.status + " " + this.name; } } }