openmainframeproject / cobol-programming-course

Training materials and labs for a "Getting Started" level course on COBOL
https://openmainframeproject.org/projects/cobol-programming-course/
Creative Commons Attribution 4.0 International
3.04k stars 589 forks source link

Fix and enhance Java snippets #276

Closed vargajb closed 2 years ago

vargajb commented 2 years ago

Signed-off-by: Janos Varga 113785741+vargajb@users.noreply.github.com

Proposed changes

The counter should start from 1 in the Java example 4 and 19, because the corresponding COBOL loop also starts from 1. The commented out counter variable increment is fixed. The commented out "write print-rec" is changed by System.out.println.

Fixes # (issue)

Type of change

What type of changes does your PR introduce to the COBOL Programming Course? Put an x in the boxes that apply.

Checklist:

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This checklist will be used as reference for both the contributor and the reviewer