I am studying for an upcoming AP Computer Science Exam and I have a quick question on syntax within brackets. In the book I'm working through shows the open bracket to always be on the next line rather than being on the same line as the statement. Does it matter either way? I am used to placing the open bracket on the same line when coding, and I want to make sure I won't get docked points for continuing that habit.
Example:
if(1==1){
//do something
}
or
if(1==1)
{
//do something
}
I'm assuming it does not matter but I would like to make sure