This question shows research effort; it is useful and clear
-8
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
2つの文字列を比較し、2番目の文字列が最初の文字列に存在する場合はtrueを返します。
@Test
public bool compareStrings{
String text1="hello world";
String text2="hello but some xyz world and xzy bla bla";
/* I want to check if text2 contains text1 */
}