Skip to content

Methods

Isfirs edited this page Aug 22, 2016 · 5 revisions

Naming

  • Named in lowerCamelCase convention

Flags

No specification.

Do as needed or required.

Parameters

  • Make parameters final
  • Named in lowerCamelCase convention
public void doSomething(final String fooBar)
{
    // Method content
}

White space

  • Add white space to empty method arguments
public void doSomething( )
{
    // Method content
}
  • Add one white space between parameters
public void doSomething( String foo, String bar)
{
    // Method content
}

Braces

  • New line
public void doSomething( )
{
    // Method content
}