Tried using methods: getKeys(), which returns Set<> and keySet(), which returns Enumeration<>, but i am not able to set value of specific key afterwards.
Asked
Active
Viewed 555 times
1
Wortig
- 963
- 2
- 11
- 37
-
1You are not supposed to change a ResourceBundle at runtime. ResourceBundles are not for configuration, they are for providing text and other program data that can vary by locale. – VGR Feb 09 '21 at 14:42
1 Answers
4
Correct me if I am wrong but I think you can only read from resources bundle, to write you have to use Properties.. This might help you :- Java - Properties: Add new keys to properties file in run time?
A.Shenoy
- 328
- 2
- 8