If the String can't be found, indexOf() returns -1. The third technique is to use the contains() method of the StringUtils class of Commons LangS.
確定! 回上一頁