I am trying to figure out how I could make something that looks like a folder file structure for a Java shell I am trying to make. I want it to resemble something like the linux folder structure (having a root and all decending from it).
For starters I am wonder if I should use a TreeMap (so some type of order is maintained) or if there is something better. I know Java's API is vast and has many different data structures I am just not sure which would be appropriate.
The other issue would be navigating between the "directories". The basic concept I have is something on the lines of using a variable as a "landmark" that would change depending on where I am moving to or from.
The folders in the tree would be "server" objects (a server.class) created by the root (the main.class) which in turn have "application" objects (application.class) created by a method in the server object.
Does my concept hold any water or would this have no hope of working?