Here's what i don't understand as you can see my outer loop should only print 5 rows but when i add my inner loop it print 6 rows one blank and 5 0123 what happened here? why did my outer loop print 6 rows?
public static void main (String[] args) {
int x;
int y;
for(x=1; x<=5; x++){
System.out.println();
for (y=0; y<4; y++){
System.out.print(y);
}
}
}