Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Language: Java
Expertise: Beginner
Apr 12, 2002



Building the Right Environment to Support AI, Machine Learning and Deep Learning

Use JBuilder's Code Templates to Write Common Java Instructions

JBuilder's templates allow you to insert some of the most common Java instructions into the editor. For instance, suppose you want to add a main method to a class. Instead of writing everything manually, by using templates you would need only to do this:
CTRL+J main

There are several dozens of pre-defined templates. Here are some of the most useful (must press CTRL^J first):
out  -> System.out.println("")

tryc -> try

        catch (Exception ex)


syn -> synchronized ()


fora -> for (int i = 0; i < .length;


There are many more. It is also possible to define new ones. Just go to Tools -> Editor Options -> Templates.

This tip was tested with JBuilder 4.0 and 5.0.
Nuno Santos
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date