How do I initialize the SortedMap? Really all I need is a series of strings that maintain the order in which they’re added to the series. I’m assuming SortedMap is even the best solution. BUT, every time I try to set cssFiles to an instance of Map() or SortedMap() I get nothing.
public class Controller {
private SortedMap<Integer, String> cssFiles;
private SortedMap<Integer, String> jsFiles;
public Controller () {
this.addCss("global.css");
this.addJs("global.js");
}
}
Seems you need a List (either ArrayList or LinkedList if you’re not into concurrency issues).
From the javadoc: