Basic Java Language: Difference between revisions
| Line 57: | Line 57: | ||
<pre> boolean a, b;</pre> | <pre> boolean a, b;</pre> | ||
Also, you can change variables after you already give them a value. | Also, you can change variables after you already give them a value. | ||
<pre>[v you want to change] = [v you want it to be]</pre> | <pre>[v you want to change] = [v you want it to be];</pre> | ||
===Identifiers=== | ===Identifiers=== | ||
There are several rules for the naming of your variables. Identifiers can be named using all the letters from A through Z (capital or lowercase, you choose), numbers 0-9 and underscore _ and the dollar sign $. The first character of the identifier cannot be a number, but it can be a letter, _ or $. | There are several rules for the naming of your variables. Identifiers can be named using all the letters from A through Z (capital or lowercase, you choose), numbers 0-9 and underscore _ and the dollar sign $. The first character of the identifier cannot be a number, but it can be a letter, _ or $. | ||