Boa tarde a todos, sou novo em java e gostaria de uma explicação sobre os if’s deste exercício.
class Test {
public static void main (String [] args) {
int x = 0;
int y = 0;
while ( x < 5 ) {
if ( y < 5 ) {
x = x + 1;
if ( y < 3 ) {
x = x - 1;
}
}
y = y + 2;
System.out.print(x " " + y + " ");
}
}
}

