Learning Java/Basic Java Language: Difference between revisions

Content deleted Content added
→‎Equals: Merging section with Assignment Operator.
Line 196:
An assignment operator assigns a value to a certain variable after evaluating the expression to be assigned. You have seen one of them in numerous examples so far, can you pick it out?
 
The equalsassignment operator, "=", sets the variable on its left equal to the value on its right. This code creates the variable ''a'' and sets it equal to 5
==== Equals ====
The equals operator sets the variable on its left equal to the value on its right. This code creates the variable ''a'' and sets it equal to 5
<pre>int a;
a = 5;</pre>