Tip Bank

DevX - Software Development Resource

Using Repeated-Letter Variable Names

When using a variable as a loop index, it is common to use single-letter variable names. This is a bad practice, because it can make it difficult to find all

DevX - Software Development Resource

Dynamically Creating Controls in Palm OS

Creating controls in Palm OS is very useful. It gives vital power to the programmer in creating applications. There are various controls in Palm OS like buttons, check boxes, radio

DevX - Software Development Resource

Generating Unique Numbers

Here is sample code: import java.security.SecureRandom;public class UniqueNumberGenerator{ static final SecureRandom random = new SecureRandom(); static final StringBuffer buffer = new StringBuffer(30); static { random.nextInt(); } public static String getNextUID()

DevX - Software Development Resource

Closing JDBC ResultSet Instances Properly

Many books about JDBC and most of JDBC-related sample code floating around seems to assume that JDBC is used directly, meaning that database connection is established by the DriverManager, and

DevX - Software Development Resource

When To Use equalsIgnoreCase

The equals() method in the String class is commonly used to compare two strings for equality. However, this method returns true only if the argument is not null and is