How do I use StringUtils in Java?

前端 未结 7 882
小鲜肉
小鲜肉 2020-11-30 01:31

I\'m a beginner in Java. I want to use StringUtils.replace but Eclipse outputs \"StringUtils cannot be resolved\".

I tried import jav

相关标签:
7条回答
  • 2020-11-30 02:24

    The mostly used StringUtils class is the Apache Commons Lang StringUtils (org.apache.commons.lang3.StringUtils). To use this class you first have to download the Apache Commons Lang3 package then you have to add it to your project libraries.

    You can go to this link to get more details: http://examples.javacodegeeks.com/core-java/apache/commons/lang3/stringutils/org-apache-commons-lang3-stringutils-example/

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