Java beginner - using the 'int counter' more than once within a button action : <p>I am a Java beginner and would like to know if I can use 'int counter' more than once as part of a button action. If I try to use this a second time I receive the error 'variable counter is already defined in method jButton1ActionPerformed(ActionEvent)'. Is there a way of re-setting the counter so I can use it again for a different action?</p>
