Java Collection, Set, Map or Array to hold unique sorted non blank strings -
i new java , container can use hold strings not empty , have them sorted.
so far, have been using arraylist, seems bit limited case.
thanks
use treeset
or treemap
, depending on requirements. both collections accept unique elements , keep them sorted.
Comments
Post a Comment