How to use a nested TreeMap
Posted on 2003-11-25
I have data in the following form: Library Case Study example
String borrower, Object loanstate, Object loanitem.
I have many borrowers, loanstate is either borrowed or returned and the loanitem
would be say a bookitem.
What I would like to do is output in the form:
Borrower: Borrowed Book1
I thought maybe a nested TreeMap would allow me to do this i.e.
Key, (key, value)
borrower (loanstate, loanitem) would allow me to do this.
Any suggestions on how to code this up ?