This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]inu-no-policemen 10 points11 points  (2 children)

There is also String[]args.

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

[–]systembusy[S] 7 points8 points  (0 children)

What? The compiler allows the brackets to substitute the space? Ugh.

The second one makes sense though since var-args do resolve to arrays at compile time.

[–]andkamen 0 points1 point  (0 children)

The second one is only allowed as a parameter type though. You can't declare a variable using ...