Basic Java Language: Difference between revisions

include link to PEMDAS
No edit summary
Line 124: Line 124:
a = a-b/c*d;
a = a-b/c*d;
</pre>
</pre>
You would then use the order or operations, otherwise known as [[PEMDAS]], to find the result of "a"; which would be:
You would then use the order or operations, otherwise known as [http://en.wikipedia.org/wiki/PEMDAS PEMDAS], to find the result of "a"; which would be:
<pre>
<pre>
a = a - (b/c)d
a = a - (b/c)d