cannot find symbol - variable acct
Hi there,
Apologies for asking a simple question I am having a hard time trying to find out where I am missing the name varialbe.
As you will see this is quite new too me. My issue is with Accounts = accts.
Much appreciation in advance for any assistance than can be given.
Below is the code I am working on.
kj
public class Customer
{
private int CustID = '0';
private String Account;
private String firstName;
private String lastName;
private int numOfAccounts = '0';
private String DOB;
private String emailAddress;
private String streetAddress;
private String streetNumber;
private String postalCode;
public void getCustID (int CustID)
{
CustID = '0';
}
public String getAccount(String Account)
{
return Account;
}
public String getName()
{
return lastName + "," + firstName;
}
public void getEmail (String emailAddress)
{
emailAddress = emailAddress;
}
public String getAddress()
{
return streetAddress + streetNumber + postalCode;
}
public void getNumOfAccount (int numOfAccount)
{
numOfAccount = '0';
}
public void getPhone (int Phone)
{
Phone = '0';
}
public void getDOB (String DOB)
{
DOB = DOB;
}
public void setDOB (String DOB)
{
DOB = DOB;
}
public void setName (String firstName, String lastName)
{
firstName=firstName;
lastName=lastName;
}
public void setAccount (String Account)
{
Account= acct;
}
}

