hello,
you don’t need to use the equals() method for the primitive types. just use == like
equals()
==
if (data[i] == 2) { }