Challenge Two

Using the JAVA language I changed the approach that I used to find the
index of the needle.  In this program I used a “for loop” to and went
through each index until I reached the goal.