Pulling values from a Java Properties file in order?

前端 未结 15 784
庸人自扰
庸人自扰 2020-12-02 18:32

I have a properties file where the order of the values is important. I want to be able to iterate through the properties file and output the values based on the order of the

15条回答
  •  孤街浪徒
    2020-12-02 19:12

    If you can alter the property names your could prefix them with a numeral or other sortable prefix and then sort the Properties KeySet.

提交回复
热议问题