public class StockPortfolio { private String name; // The portfolio's owner private int appleStock; // The number of shares of Apple stock private int googleStock; // The number of shares of Google stock public StockPortfolio(String owner, int apple, int google) { name = owner; appleStock = apple; googleStock = google; } public String getName() { return name; } public int getAppleStock() { return appleStock; } public int getGoogleStock() { return googleStock; } public int getTotalStock() { return (appleStock + googleStock); } public void setAppleStock(int shares) { appleStock = shares; } public void setGoogleStock(int shares) { googleStock = shares; } public String toString() { return (name + " APPL: " + appleStock + " GOOG: " + googleStock); } }