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 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.
StringUtils is an Apache Commons project. You need to download and add the library to your classpath.
To use:
import org.apache.commons.lang3.StringUtils;
Videos
Hello everyone, Can someone please help me on this, For example, You have some list of strings and your checking if all the required fields are blank or not using Header= {id, name, grade, address, info}
If(StringUtils.isnotblank(Header) ){ //some logic }
But what if I just want to ignore one field I.e grade, Even if grade is blank it goes inside the condition. But other fields shouldn’t be blank And also if grade is present, it will still work.
Thanks