Resetting counter to zero
<p>I'm currently learning Java.</p>

<p>I have a for loop which uses a counter to keep track of how many words are written on a line.</p>

<p>When the wordCount == 10, I insert a line break System.out.println()</p>

<p>I want to reset wordCount to zero after this line break, but redeclaring wordCount == 0 is "not a statement" in NetBeans. How do I reset a variable value? Thanks</p>
