|
Note: |
In the above example the C# vs. Java syntax is the same, but
from MSDN
note the following interesting point : "In C#, the square brackets in the array
declaration must follow the data type [as they are above] , and cannot be placed
after the variable name as is permitted in Java."
View an example of this syntax in these Java array declaration samples
(from www.janeg.ca).
Thus, the syntax int nums[ ] is not permitted in C# but is permitted in Java. |