Correctness and the Loop Invariant

Java