I was looking for a function to get an unique number for a given string (should be a database ID).
The hashCode() function isn't useful because can return the same code for 2 different strings.
I forgot to say that I must use JDK 1.4.2, so the UUID class is not available.
I need numbers to accelerate the DB comparissons (I'm not looking for a sequence), and String is not so efficient.
Strings are dynamic, not defined.