/** * This class encapsulates all pieces of information * needed to specify a solution for the Stock Market Problem * * @author americachambers * */ public class StockInfo { public int profit; // the best profit found public int buy_index; // the index into the array corresponding to the buy date public int sell_index; // the index into the array corresponding to the sell date // These additional fields are required // for the Recursive solution only public int max_index; public int min_index; }