Update Stock.java

add function: getPreviousClose(), to get previous closed price of a stock.