Basic java programs and fun with simple data structures