// example use of continue outer: for ( int row=0; row<rows; row++ ) { inner: for ( int col=0; col<cols; col++ ) { if ( col == 0 ){ out.println(); } if ( cell[ i, j ] == null ) { continue inner; } out.print( cell[ i, j ] ); // continue inner will jump here } }