public class StocksHandler extends Object
Constructor and Description |
---|
StocksHandler() |
Modifier and Type | Method and Description |
---|---|
ArrayList |
getStocks(String symbols)
Retrieve the given stocks.
|
void |
saveStocks(ArrayList stocks)
Save a given list of stocks to a file.
|
public ArrayList getStocks(String symbols)
symbols
- a string containing the stock symbols, separated by a
commaStock
objectspublic void saveStocks(ArrayList stocks)
stocks
- the list of Stock
objects