Write a class Stock (not public, same file) and a public class StockApp.
A Stock has four private fields: symbol, name, previousClosingPrice and currentPrice. The constructor receives the symbol and the name; the two prices have accessors and mutators; getChangePercent() returns the change from the previous close to the current price, in percent.
main reads lines symbol name previousClose currentPrice until the end of the input, prints one line per stock, then the number of stocks and the best one of the day. For the input
ORCL Oracle 34.5 34.35
KEAN KeanTech 10 12.5
SLOW SlowCo 80 80
the program prints
ORCL (Oracle): 34.50 -> 34.35, change -0.43%
KEAN (KeanTech): 10.00 -> 12.50, change 25.00%
SLOW (SlowCo): 80.00 -> 80.00, change 0.00%
Stocks read: 3
Best of the day: KEAN (25.00%)