I'm a beginner in Java. I want to use StringUtils.replace but Eclipse outputs "StringUtils cannot be resolved".
StringUtils.replace
"StringUtils cannot be resolved"
I tried import java.lang.*;, but it doesn't work.
import java.lang.*;
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.
java.lang
StringUtils
1.4m articles
1.4m replys
5 comments
56.9k users