Content deleted Content added
updated brief description to clarify association with Java specifically |
No edit summary Tags: Mobile edit Mobile web edit |
||
Line 207:
<syntaxhighlight lang="java">
int count;
count = 35;
int count = 35; // Declaring and initializing the variable at the same time
</syntaxhighlight>
Multiple variables of the same type can be declared and initialized in one statement using comma as a delimiter.
<syntaxhighlight lang="java">
int a, b;
int a = 2, b = 3; // Declaring and initializing multiple variables of the same type
</syntaxhighlight>
|