Share Market program in JAVA