|
Question about the command line parameters
You know the familiar String[ ] args between the parentheses in the main method in Java? I've been doing some research and looking for arguments whether or not it's okay to write it String args[ ] instead. Because I'm used to working in C++, I'm used to doing it the latter way instead. But I believe I read on one site that you really should keep it String[ ] args. One of the reasons they gave was that if you were to return an array from a method, you would have to write it like that, not the other way.
I know one thing I probably will end up doing my own way is the Allman style of aligning your braces, instead of the hanging brace style which I can't stand.
But I could probably get used to the String[ ] args though if that is a better way to do it.
What is the opinion here?
|