0

Hi guys
Im pretty new to java after programming with python for about a year i thought i'd give it a go. I did have a quick question though.
How would i check for membership in a string.
For example

String str1="Hello world";
String str2 = "world";

Is there any way to check if str2 in str1?

Thanks!

3
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by peter_budo
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.