Netbeans often assumes that I “flip operands of a binary operator” when I perform math calculations. For example, in the following line of code:
change = 100 - price; quarters = change / 25; dimes = change % 25 / 10; nickels = change % 25 % 10 / 5; pennies = change % 25 % 10 % 5;
Netbeans makes a sentence for each mathematical symbol (therefore, it does this three times in the Penny line.
I'm not sure I understand why he makes this proposal. If I had to flip the operands while doing the division, I would get a different result (if “flip” means what I think it does, that switches the order of the two values). Why does it offer?
java netbeans operands flip
Lauren stephen
source share