Why Java Enumeration doesn't return properties list in order?

后端 未结 4 1085
情话喂你
情话喂你 2020-12-19 20:48

I\'m creating a simple program with the possibility to change the language and I would convert the list of properties in the file myBundle.properties in a String array.

4条回答
  •  清歌不尽
    2020-12-19 21:24

    There are two places where I would not assume the order.
    1.From the Vector and 2.labels.getKeys();

    Try it on a enum that is not instantiated by a collection.

提交回复
热议问题