Hi Peter, welcome to the Ranch!
I assume you are referring to the different styles known as "Egyptian" or "C" style placement of braces?
There is no definitive right or wrong answer as both are acceptable for Java code. The Egyptian style is more common, and my preference, but even some of us Ranchers prefer the C style.
The most important factor to consider is that of consistency. If you are joining a team with a codebase that uses one or the other consistently then it is good style, even manners, to follow the same
pattern.