Java programs, almost finished