Hi,
I can not seem to get my counter to print out in Java. I have it setup to count each iteration of a loop in my program. Then, I want to print out the number of iterations of the loop.
I have this statement after my loop in the program:
iteration_count er++
Then, I want to print it out the amount of times it went through the loop. I used this code:
System.out.prin tln("Total iterations:" + interation_coun ter);
What am I doing wrong with this??? I can not get it to work. Anyone have an example to help me out with printing out the counter. thanks
I can not seem to get my counter to print out in Java. I have it setup to count each iteration of a loop in my program. Then, I want to print out the number of iterations of the loop.
I have this statement after my loop in the program:
iteration_count er++
Then, I want to print it out the amount of times it went through the loop. I used this code:
System.out.prin tln("Total iterations:" + interation_coun ter);
What am I doing wrong with this??? I can not get it to work. Anyone have an example to help me out with printing out the counter. thanks
Comment