Mientras se escribe código en el editor de NetBeans podemos utilizar las siguientes abreviaturas y después presionar la tecla Tab para generar la línea o bloque de código que se indica, algo bastante útil que nos ahorra además de tiempo errores de dedo al momento de codificar:
| -Abreviatura- | - Resultado - |
| En | Enumeration |
| Ex | Exception |
| Ob | Object |
| Psf | public static final |
| Psfb | public static final boolean |
| Psfi | public static final int |
| Psfs | public static final String |
| St | String |
| ab | abstract |
| bo | boolean |
| br | break |
| ca | catch( |
| cl | class |
| cn | continue |
| df | default: |
| dowhile | do{ }while(condition); |
| eq | equals |
| ex | extends |
| fa | false |
| fi | final |
| fl | float |
| forc | for (Iterator it = collection.iterator(); it.hasNext();) { Object elem = (Object) it.next(); } |
| fore | for (Object elem : iterable) { } |
| fori | for (int i = 0; i < arr.length; i++) { } |
| fy | finally |
| ie | interface |
| ifelse | if (condition){}else { } |
| im | implements |
| iof | instanceof |
| ir | import |
| le | length |
| newo | Object name = new Object(args); |
| pe | protected |
| pr | private |
| psf | private static final |
| psfb | private static final boolean |
| Psfi | private static final int |
| psfs | private static final String |
| pst | printStackTrace(); |
| psvm | public static void main(String[] args){ } |
| pu | public |
| re | return |
| serr | System.err.println(“”); |
| sout | System.out.println(“”); |
| st | static |
| sw | switch( |
| sy | synchronized |
| tds | Thread.dumpStack(); |
| th | throws |
| trycatch | try {} catch (Exception e) {} |
| tw | throw |
| twn | throw new |
| wh | while( |
| whileit | while (it.hasNext()) { Object elem = (Object) it.next(); } |