Skip to content

Instantly share code, notes, and snippets.

@boshng95
Created October 16, 2019 01:41
Show Gist options
  • Save boshng95/29dcbce87a8ec100d2fd9c48aa302983 to your computer and use it in GitHub Desktop.
Save boshng95/29dcbce87a8ec100d2fd9c48aa302983 to your computer and use it in GitHub Desktop.
public class DailyPrice {
private String dailyDate;
private double dailyOpen;
private double dailyHigh;
private double dailyLow;
private double dailyClose;
private int dailyVolume;
public DailyPrice(String dailyDate, double dailyOpen, double dailyHigh, double dailyLow, double dailyClose, int dailyVolume) {
this.dailyDate = dailyDate;
this.dailyOpen = dailyOpen;
this.dailyHigh = dailyHigh;
this.dailyLow = dailyLow;
this.dailyClose = dailyClose;
this.dailyVolume = dailyVolume;
}
}
public class Company {
private String companySymbol;
private ArrayList<DailyPrice> companyStockPrices;
public Company(String companySymbol, ArrayList<DailyPrice> companyStockPrices) {
this.companySymbol = companySymbol;
this.companyStockPrices = companyStockPrices;
}
}
public class Companies {
private ArrayList<Company> listedCompanies;
public Companies(ArrayList<Company> listedCompanies) {
this.listedCompanies = listedCompanies;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment