I'm trying to simulate a directly mapped cache in java. Any ideas on which data structure to use to - by bananamana I'm trying to simulate a directly mapped cache in java. Any ideas on which data structure to use to represent the cache? Read the article