I want to build a command line interface with menus and sub-menus and eventually the leafs of the tree should be operations like..
bank management -> account management -> add acount (insert account info)
And I'm looking for a good way which works with the OO principles...

navigating a CLI can be seen as traversing a state machine, with each state a menu and the edges the commands at each menu
– ratchet freakMar 27 '13 at 10:38

yeah..but should do it with a while loop? or what..im stuck with it
– aclokayMar 27 '13 at 11:10

I tried making a "menunude" abstract class which has the sub classes menu and operation..menu has a list of menus and operation has an execute function which does whatever it's supposed to do...the problem is what to put in the main thingy
– aclokayMar 27 '13 at 11:27