Whitespace:

* Set your editor to expand TABs to 4 spaces. Source code files should 
  not contain any TABs.
* Don't use whitespace for alignment purposes.
* Keep spaces between operators:

      for(int i = 0; i < 25; i += 3) {
      
          ...
      
      }
      
  Instead of:
  
      for(int i=0;i<25;i+=3) {
      
          ...
	  
      }

Line length:

* Try to keep code lines shorter than 76 characters, but don't expend
  too much effort if some lines exceed that length. Comment lines should
  always be under 76 characters.

Comments:

* Always use /* ... */, never //.
* Start your comments with a capital and end them with a period.
* Leave an empty line above and below a comment
  (unless that leads to two consecutive empty lines):
* Rewrite your code so you won't need comments:

      if(frobbingEnabled == true) {
  
          ...
      
      }

  Instead of:

      /* Frob knobs if the user has enabled knobfrobbing. */
  
      if(b25 == true) {
  
          ...
  
      }
  
Braces:

* Leave an empty line above and below every brace (unless that leads to 
  two consecutive empty lines):

      if(foo) {
      
          ...
	  
      } else {
      
          ...
	  
      }
      
  Instead of: 
  
      if(foo) {          if(foo)  
          ...                ...   
      } else {           else   
          ...                ...      
      }                            
      
* Put braces on the same line as the block they belong to.

      if(foo) {
  
          ...
    
      }

* If you don't have any code to execute in a 'catch' block,
  put the opening and closing braces on the same line:

      try {

          ...

      } catch(Exception e) {}

Naming:

* For classnames, nouns are preferred rather than verbs.
* Use full, descriptive names for variables that are used globally or
  in a large context; use abbbreviated, abstract names for variables
  that are used locally or in a limited context.

Variable declaration:

* When declaring variables, order them roughly from the most commonly 
  occurring to the most infrequently occurring type:

      int i, j;
      Hashtable h;
      Point p;
      ExtendedListModel m;
      MyVerySpecificType t;
        
* Declare variables near where they're being used:

      for(int i = 0; i < 25; i++)

  Instead of:

      int i;

      ...

      for(i = 0; i < 25; i++)

