Skip to content
erh edited this page Oct 28, 2010 · 11 revisions

Basics

Class Structure

  • public static at top
  • members at bottom
  • members should start with _
  • members should be package private by default
  • do not use this unless absolutely needed
class Foo {
    static public final int CONSTANT = 5;
 
    public Foo(){
    }

    private int _member; 
}

Bracing

void foo(){
    if ( true ){
       print( "yay" );
    }
    else if ( true ){
       print( "boo" );
    }
    else {
       print( "zzz" );
    }
}

includes

Currently code use wildcards. We should not mix and match, so if people want to switch we can vote and switch wholesale

Clone this wiki locally