Basic Java programs from university labs