Java dapat digunakan sebagai kunci

Yes, objects of custom classes can be used as a key in a HashMap
see source for details.
Skynet