An simple loop written in non-idiomatic, Java-like Ruby.