So I started learning programming in Visual C#, and that tends to generate code as
Now I am getting into java in Netbeans, and the code gets generated as
And for single line methods I've also seen people do
Is there any sort of standard as to which one should be used? To me the first version seems easiest to read, but I might just be the most used to it.
Code:
method ()
{
//code
}
Now I am getting into java in Netbeans, and the code gets generated as
Code:
method () {
//code
}
And for single line methods I've also seen people do
Code:
method () { //code }
Is there any sort of standard as to which one should be used? To me the first version seems easiest to read, but I might just be the most used to it.