Stock ticker in Java