Archive | August 21st, 2007

Using the new Process Builder class

August 21, 2007

0 Comments

We all know how to execute programs from within a Java Application by making use of the Runtime Api. For example, assume that we want to launch the Internet Explorer browser within the Java code. Then the following code snippet will just do that, ProcessLauncher.java 1 2 3 4 5 6 7 8 9 10 [...]

email

HashCode and equals methods

August 21, 2007

26 Comments

HashTable, HashMap and HashSet are the Collection classes in java.util package that make use of hashing algorithm to store objects. In all these Collection classes except HashSet, objects are stored as key-value pairs. For the storage and the retrieval of any user-defined objects it is a good practice to override the following methods which is [...]