Search:

Type: Posts; User: Newoor

Search: Search took 0.08 seconds.

  1. Replies
    3
    Views
    2,902

    Re: Substring program, not working

    and dont need first loop
  2. Replies
    3
    Views
    2,902

    Re: Substring program, not working

    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...
  3. Replies
    3
    Views
    2,902

    Substring program, not working

    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...
Results 1 to 3 of 3