java programs in college data structure class