Determines if this String contains the sequence of characters in the CharSequence passed. @param cs the character sequence to search for. @return true if the sequence of characters are contained in this string, otherwise false. @since 1.5
(CharSequence cs)
| 1915 | * @since 1.5 |
| 1916 | */ |
| 1917 | public boolean contains(CharSequence cs) { |
| 1918 | return indexOf(cs.toString()) >= 0; |
| 1919 | } |
| 1920 | |
| 1921 | /** |
| 1922 | * Returns the index within this object that is offset from {@code index} by |