and dont need first loop
Type: Posts; User: Newoor
and dont need first loop
I didn't spot the i++/j++ thing. So thanks, in the end I used
str2.substring(j,j+str1.length()).equals(str1)
that worked fine, and just did a couple of return statements
My Program is...
Hi
Write a static method which takes two strings and returns a boolean saying whether the
first string occurs as a substring within the second. For example, if the strings are
“blis” and...