1 Reply Latest reply on Sep 30, 2016 1:38 PM by Chrys C.

    Possible Error on Oracle Certified Associate Java SE 8 Programmer I Study Guide

    Sela Jung

      In Chapter 2, Basic For-Loop on page 80, there's an example code:

       

      int x = 0;

      for(long y = 0, z = 4; x < 5 && y < 10; x++, y++) {

      System.out.print(y + " ");

      }

      System.out.print(x);

       

      The text says this code prints out 0 1 2 3 4. However, I believe it should print out 0 1 2 3 4 5?