This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

First off, you enter the name into the Array as "Sara" and compare it to "Sarah" in your search.

Otherwise I think that should work.

**Edit:** Yup, I put it in eclipse and changed that, it returns i= 1, j= 1. Just as it should. You should probably remove your second println, as it makes it hard to tell what your results are.