A simple implementation of composite pattern in Java for menu hierarchies...