Java programs from lab, intro to java