i need to add selectWineCase() method to my Browser class which allows a browser to choose a case of wine provided the user is logged into the website. The method is passed a WineCase object as a parameter. so i need to declare a new field wineCase in the Browser class in order to store the case of wine selected. and then i need the selectWinecase() method print a message to a terminal window of the form
Browser 6732 has selected wine case ref number W1473 of 12 Chablis at £120.
--- Update ---
my browser class looks likes this
private int yearOfBirth;
private int id;
private String email;
private boolean loggedIn = true;
public Browser(String getEmail, int getId, int getYearOfBirth)
{
email = getEmail;
id = getId;
yearOfBirth = getYearOfBirth;
}
public Browser()
{
email = "J.Booth@winedirect.com";
id = 2678;
yearOfBirth = 1990;
loggedIn = true;
}
public void yearOfBirth(int getYearOfBirth)
/**
*
*/
{
yearOfBirth = getYearOfBirth;
}
public void id(int getId)
/**
*
*/
{
id = getId;
}
public void setLoggedIn(boolean value)
{
loggedIn = value;
if(loggedIn == true)
{
System.out.println("online;" + id);
}
else
{
System.out.println("Offline");
}
}
public boolean isLoginStatus()
/**
*
*/
{
return loggedIn;
}
public void email(String getEmail)
/**
*
*/
{
email = getEmail;
loggedIn = true;
}
public void loggedOut()
/**
*
*/
{
email = "";
yearOfBirth = 0;
id = 0;
loggedIn = false;
}
}