Created
October 16, 2019 01:41
-
-
Save boshng95/29dcbce87a8ec100d2fd9c48aa302983 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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