How do I use StringUtils in Java?

前端 未结 7 1028
小鲜肉
小鲜肉 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:12

    java.lang does not contain a class called StringUtils. Several third-party libs do, such as Apache Commons Lang or the Spring framework. Make sure you have the relevant jar in your project classpath and import the correct class.

提交回复
热议问题