StringUtils: equals(String arg0, String arg1)
/*
StringUtils.equals(String arg0, String arg1)
*/
import org.apache.commons.lang.StringUtils;
public class StringUtilsTrial {
public static void main(String[] args) {
// Compare Strings...No NullPointer Exception!
System.out.println("12) Comapre null and null >>>" + StringUtils.equals(null, null));
}
}
Apache-Common-Lang.zip( 248 k)Related examples in the same category