Java Code from Introductory Course