Java array convention: String[] args vs. String args[]

后端 未结 4 1775
孤城傲影
孤城傲影 2020-12-08 20:49

I am currently teaching students as a tutor programming conventions. I\'ve told them that they can find most conventions in the Oracle Code Conventions.

In my last

4条回答
  •  猫巷女王i
    2020-12-08 21:08

    One advantage of using [] immediately after array type is: If you want to declare multiple arrays then you to write like: int[] a,b,c; But if you use [] after the array name, then we have to use[] after every array variable like: int a[],b[],c[];

提交回复
热议问题