package lab_7; import java.util.*; public class Account { private int id; private double balance; private Date dateCreated; public Account(int id, double balance) { this.id = id; this.balance = balance; } public Account() { } public int getId() { return id; } public void setId(int id) { this.id = id; } public double getBalance() { return balance; } public void setBalance(double balance) { this.balance = balance; } public Date getDateCreated() { return dateCreated; } public double withdraw(double amount) { if (getBalance() - amount >= 0 && amount > 1) { balance -= amount; } return balance; } public double deposit(double amount) { return balance += amount; } public String toString() { return "ID: " + getId() + " Balance: " + getBalance() + " Date created: " + getDateCreated(); } }