private static boolean isValidStartEndForLength ( int start , int end , int length ) { if ( start > length || end > length ) { return false ; } return true ; }
Tells whether or not the given start and end are valid for the given length that is both start and end are lower that the length .