Exercises 2
Write a small program to simulate the throwing of a six-faced dice, using the java.util.Random Class.
Use a StringTokenizer in order to parse a given String into words. Use the character transposition encoding algorithm, with a random seed to encode each one of these words. Store these words into a HashTable (associated with their decoding keys) and use an Enumeration to loop and print them in both their encoded and decoded form along with their keys.