java - Counting loop executions -


I think how often a loop is executed, it is not certain how I would have to go about doing this.

I am using Dr. Java, thanks in advance for your help!

Before the loop, define a count variable:

  Int count = 0;   

Enlarge that step anywhere in the loop:

  count ++;    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

java - Reaching JTextField in a DocumentListener -

c# - Add Image in a stackpanel based on textbox input -