P
Phil Latio
First question. There seems to be two styles of writing Java code (see
below), one with open curly brackets on the same line and the other with the
open curly brackets on the line below. Does anyone know what the technical
names are for these two styles?
// Style No.1 which I hate
public MultiListener() {
// Style No.2 which I like
public MultiListener()
{
Secondly, does anyone know of a tool that converts the Style No.1 syntax to
Style No.2? I absolutely detest the Style No.1 but if ever download any
example code, it's nearly always in that style.
Perhaps it's just me but it so much easier to read and understand other
people's code if it is laid out using the Style No.2. I change it manually
at the moment but I am sure someone has written a little tool which would
save me a lot of time.
Cheers
Phil
below), one with open curly brackets on the same line and the other with the
open curly brackets on the line below. Does anyone know what the technical
names are for these two styles?
// Style No.1 which I hate
public MultiListener() {
// Style No.2 which I like
public MultiListener()
{
Secondly, does anyone know of a tool that converts the Style No.1 syntax to
Style No.2? I absolutely detest the Style No.1 but if ever download any
example code, it's nearly always in that style.
Perhaps it's just me but it so much easier to read and understand other
people's code if it is laid out using the Style No.2. I change it manually
at the moment but I am sure someone has written a little tool which would
save me a lot of time.
Cheers
Phil