How do i start at the end of an array and work my way to the beginning?
<p>I'm trying to produce code that will search for an element starting at the end of an array and work it's towards the beginning until i find what I am looking for. so far I have this, but it doesn't seem to be working: </p>

<pre><code>     for (int i = randomList.length - 1; i &gt; 0; i--)
            {
             if (randomList[i].equals(findThis))
                {
                    System.out.println("The index of what you're looking for in the array is: " + i);

                }                
            }
</code></pre>

<p>When I compile and run this, it produces the same answer as this: </p>

<pre><code>     for (int j = 0; j &lt; randomList.length; j++)
            {
            if (randomList[j].equals(findThis))
                {
                    System.out.println("What you're looking for is located at this index: " + j);
                }           
            }
</code></pre>

<p>which is weird because it is starting at the front of the array and working its way to the end. I am grateful for all help! </p>
