Program that tells to delete a name in an arraylist when that name is on the list more than once : <p>Program that tells to delete a name on an ArrayList when that name is on the list twice. This is the part of the programIi need help on:</p>

<pre><code>if (list.contains(nameToFind) &amp;&amp; int i = 1; i &lt; THIS IS WHERE I NEED HELP)
                System.out.println("Hey, that name is written twice on the list, edit or delete one of them!");
            }
 else {
                System.out.println(" This name is only written once");
</code></pre>
