Is there any difference between StringUtills.endWith("str","substr") and str.endWith("substr")?
1 Answer
StringUtils methods are null-safe.
So if str is null you do not get a nullpointerexception if you are using StringUtils.
For more informations see the documentation.
endsWith. Also, they will only behave similarly ifstrhas the value"str"