for (int iI = 4; iI > 0; iI--)
faAmount[iI] - faAmount[iI - 1];
This is the code it's in. How can I fix this?
Maybe you forgot the equal sign
for (int iI = 4; iI > 0; iI--)
faAmount[iI] -= faAmount[iI - 1];
Or to assign the difference in a variable
double x = 0; //or another value
for (int iI = 4; iI > 0; iI--)
x = faAmount[iI] - faAmount[iI - 1];
faAmount[iI] - faAmount[iI - 1] is n expression that have a result, but you don't assign it to anything, this is invalid in Java.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With