What is a good alternative of LTRIM and RTRIM in Java?

后端 未结 7 879
既然无缘
既然无缘 2020-12-01 09:16

What is a good alternative of JavaScript ltrim() and rtrim() functions in Java?

相关标签:
7条回答
  • 2020-12-01 09:45

    Guava has CharMatcher trimLeadingFrom and trimTrailingFrom

    e.g. CharMatcher.whitespace.trimTrailingFrom(s)

    0 讨论(0)
提交回复
热议问题