For problems 10 - 17, we will be referring to the following
Account class definition,
public class Account
{
private int accountNumber;
private double balance;
public Account() {
this.accountNumber = 0;
this.balance = 0.0;
}
public Account(int accountNumber, double balance) {
this.accountNumber = accountNumber;
this.balance = balance;
}
public double getBalance()
{
return this.balance;
}
public void setBalance(double balance)
{
this.balance = balance;
}
public double getAccountNumber()
{
return this.accountNumber;
}
public void setAccountNumber(int accountNumber)
{
this.accountNumber = accountNumber;
}
Also, suppose in a main method somewhere, you have created the
following objects:
Account sal = new Account(12345, 1500.00);
Account jen = new Account(54321, 2000.00);
10. Write a statement to print only sal's account number