StringUtils'之间的区别方法和字符串的方法

时间:2016-08-26 05:33:13

标签: java

StringUtills.endWith("str","substr")str.endWith("substr")之间有什么区别吗?

1 个答案:

答案 0 :(得分:2)

StringUtils方法是空的。

因此,如果str为null,则在使用StringUtils时不会得到nullpointerexception

有关更多信息,请参阅documentation

相关问题