an example of usage of HashMap in java