This example displays the last row index of the range.
int endRow = range.getEndRow(); System.out.println(endRow);
Related information
EndRow property