Hash table

Hash table  Hash table was part of the original java.utit and is a concrete implementation of ~ Dictionary. However, Java 2 engineered Hash table so that it also Implements the Map interface. Til Us, Hash table is now integrated into the collections framework. It...

An Observer Example

An Observer Example Here is an 'example that demonstrates an observable object. It creates an observer called Watcher, that implements the Observer interface. The class being monitored is called Being Watched, It extends Observable. Inside nightwatchmen is the...

observable

observable The observable class is used to create subclasses that other parts of your program can observe. When an object of such a subclass undergoes a change, observing classes are ' notified. Observing classes must implement the Observer interface, which defines...

Random

Random The Random class is a generator of pseudo random numbers. These are called pseudo random,numbers because they are simply uniformly distributed sequences. Random defines the following constructors: Random() Random Long seed) The first version creates a number...

The Locale

The Locale The Locale class is instantiated to produce objects that each describe a geographical or cultural region. It is one of several classes that provide you with the ability to write programs that can execute in several different international environments. For...

TimeZone

TimeZone Another time-related class is TimeZone. The Timezone class allows you to work with time zone offsets from Greenwich mean time (GMT), also referred to as Coordinated Universal Time (UTC). It also computes daylight saving time. TimeZone only supplies the...