Proper Java coding style

Submitted By: admin on July 10, 2017

4

1

4546

Proper Java coding style Source: www.reddit.com

There is also String[]args.

And, as I learned recently, you can nowadays also just write String... args

- inu-no-policemen

Site Comments (1)

Please Signin or Signup to add a comment


1

July 18, 2017, 10:20 pm

Tim58bb56b454b99 wrote:

In java, when declating fields or local variables, `int foo[]` is actually the best way. When declaring parameters, `int[] foo` should be used. This is due to the fact, that with `int[] foo, bar[], snafu[][]`, snafu is actually 3dimensional.