Page 1 of 1

What is the counter variable being used for in the example below. Assume all variables are declared and initialized appr

Posted: Sun Jul 10, 2022 11:25 am
by answerhappygod
What Is The Counter Variable Being Used For In The Example Below Assume All Variables Are Declared And Initialized Appr 1
What Is The Counter Variable Being Used For In The Example Below Assume All Variables Are Declared And Initialized Appr 1 (13.41 KiB) Viewed 65 times
What is the counter variable being used for in the example below. Assume all variables are declared and initialized appropriately. while (current<=data.length) { if (data[current].compareTo(target) } counter++; result = data[current]; current++; == 0) {