I have a piece of code, I declare the variable i in a for loop, right after that I tried to print i and it gives me a null pointer exception. I really can't figure why, I just declared the variable..
public void normalization(){
for(int i = 0; i < numberOfVariables; i++){
out.print(i);
double min = unitRow.getMin(i);
double max = unitRow.getMax(i);
for(int j = 0; j < numberOfRecords; j++){
double normalizedValue = normalizeValue(unitRow.unitArray[j].numberRow.numberArray[i],min,max);
unitRow.unitArray[j].numberRow.update(i, normalizedValue);
}
}
}