A simple snippet for Sublime Text 2. Launch it writting "java" and pressing <tab>.