public static java.lang.String stripEnd(java.lang.String str,
java.lang.String stripChars)
sample : StringUtils.stripEnd(null, *) = null
StringUtils.stripEnd("", *) = ""
StringUtils.stripEnd("abc", "" = "abc"
StringUtils.stripEnd("abc", null) = "abc"
StringUtils.stripEnd(" abc", null) = " abc"
StringUtils.stripEnd("abc ", null) = "abc"
StringUtils.stripEnd(" abc ", null) = " abc"
StringUtils.stripEnd(" abcyx", "xyz" = " abc"
我的code : for (Enumeration e = TokenVector.elements(); e.hasMoreElements()
{
String myString = (String) e.nextElement();
String newStr = StringUtils.stripEnd(myString,remove);
System.out.println(myString);
}
error : cannot found symbol
为什么? |