Why did we use INTEGER here

in this case, why have we used INTEGER instead of normal int.

It doesn’t really make any difference in this case. Java uses a technique called ‘Autoboxing’ i.e it wraps or unwraps primitive data types into reference types according to its need. In fact, INTEGER here is used because later ahead, Ma’am uses the String array (which is a reference data type) so, just to make comparisons easier she passes an INTEGER reference array.