Skip to content
Rahul Sriram edited this page Apr 2, 2016 · 3 revisions

Welcome to the LibraryManager wiki!

Java Code Style

  • Overloads : never split

  • Braces : Use even if empty body / one line

    • If empty body braces together in same line : {}
    • One Statement Per line
  • Arrays : The square brackets form a part of the type, not the variable: String[] args, not String args[].

  • Class names are written in UpperCamelCase.

  • Method names are written in lowerCamelCase.

  • Variable names are written in lowerCamelcase.

  • Methods are named according to the action(verb) they do.

  • Constant names use CONSTANT_CASE: all uppercase letters, with words separated by underscores.

  • Boolean variables should contain isPrefix.

Ref : https://google.github.io/styleguide/javaguide.html

Clone this wiki locally