To declare a array in Java, you have following options:
- dataType[] variableName;
- dataType variableName[];
- dataType []variableName;
The 1st is clearly related to how Java actually works, and you can read it as "dataType array variableName".
The conclusion is:
- dataType[] variableName;
- dataType[][]...[] arrayName;
Java, JavaScript, HTML, XHTML, AJAX, CSS, etc.
No comments:
Post a Comment