int x = 0, y = 0, z = 10; while (x < z) { y = y + x; if (y > 10) { y = y / 2; } x++; }
for
statement./** * Compares this object with the Date on the right-hand side. * * @param rhs (right-hand-side) The object with which to compare this Date. * @return -1 if this Date comes before rhs, 1 is this Date comes after rhs, * and 0 is they are equal. */ public int compareTo(Object rhs) {