This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I need a data structure that can store multiple (ordered) units of data, each of them in the following format:
Value1 is mapped to Value2 which is mapped to Value3 which is mapped to Value4
Value1 can be "a" or "b"
Value2 can be "g" or "u"
Value3 can any string Value4 can be a string containing one character from 'x', 'y', or 'z', or any combination of these (such as "xy", "xz", etc)
A data structure defined as an ArrayList of Map<String, Map><String, Map><String, String>> should work, but I'm looking for better ideas from you guys.