public boolean endsWith ( String str , String suffix ) { return ( str == null || suffix == null ) ? ( str == suffix ) : str . endsWith ( suffix ) ; }
Tests if the given string ends with the given suffix . Returns true if the given string ends with the given suffix .