Basic Java Language: Difference between revisions
wikademia>Crossbow9 No edit summary |
wikademia>Crossbow9 No edit summary |
||
| Line 64: | Line 64: | ||
<pre>System.out.println("Hello World");</pre> | <pre>System.out.println("Hello World");</pre> | ||
This line of code prints ''Hello World'' onto the console. | This line of code prints ''Hello World'' onto the console. | ||
==Operators== | |||
==Equality Operator = == | ===Equality Operator = === | ||
The equality 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 | The equality 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; | <pre>int a; | ||