Just set count to 0 at the end of every iteration.
System.out.println(count);
count = 0;
return arr;
solved How to set a static integer to zero?
Just set count to 0 at the end of every iteration.
System.out.println(count);
count = 0;
return arr;
solved How to set a static integer to zero?