i have this code, i need to have for() inside this boolean method,
but it shows an error that return method is missing.
how can i solve it?
public static boolean findPrevious(int dataIdx, int featIdx, String data, String[][] array){
for(int i=0; i<dataIdx; i++)
{
if(array[i][featIdx] == data)
return false;
else
return true;
}
}
thanks ^^