My Java teacher said it was better to use ++n instead of n++, I am not seeing the logic behind this. Does anyone know?
++n adds one to n, then uses it; n++ uses it then adds one. Same applies to --.