I have an array of doubles:
double[] arrayOfDoubles = new double[]{doubleVal1, doubleVal2, doubleVal3, doubleVal4, doubleVal5, doubleVal6};
and doubleValues initialization:
double doubleVal1 = 0;
double doubleVal2 = 0;
double doubleVal3 = 0;
double doubleVal4 = 0;
double doubleVal5 = 0;
double doubleVal6 = 0;
and now im using foreach loop with that array:
for (double val : arrayOfDoubles)
{
val += 0.1;
}
i thinked it should add to every value(doubleVal1, doubleVal2..., doubleVal6) value 0.1.
What should i change to get that?