Tip Bank

DevX - Software Development Resource

Single-Instance Message Store

Question: I am working on a project to increase mail efficiency for our Exchange Server-based mail system. I would like to find out whether a specific feature is being utilized

DevX - Software Development Resource

Displaying PDF Documents

Need the ability to view a PDF document within a Javaapplet? Daniel F. Savarese, answered this question in the March 2000 issue of Java Pro. His solution involves using Adobe’s

DevX - Software Development Resource

Getting Around Global Variables

In many programming languages such as C or Pascal,most users have come across global variables.Like this C example: int GlobVar = 0; // Global variable void f(int x) // Function

DevX - Software Development Resource

Be Careful When You Cast

Java allows you to cast variables, or change them from one variable type to another. However, it’s important to make sure that the final variable type can store all the

DevX - Software Development Resource

Handling Complex Initialization

Complex initializations need only be done once and the result stored for later use. For example if you need to create a list of integer values and then load them,

DevX - Software Development Resource

Resolution of Overloaded Functions

Let’s say we have an overloaded function called fun(): void fun(string) { system.out.println(“String”); }void fun(int) { system.out.println(“Int”); }void fun(double) { system.out.println(“Double”); }void fun(float) { system.out.println(“float”); } If we call fun(37)

DevX - Software Development Resource

Internationalization and Formatting numbers

You can consider Java to be a strong language with respect to internationalization and number formatting. Sometimes you might wish to format numbers in a specific locale or given a