Properties class, it almost my favour class when building my own side project. It come into handy because Java help dev to store information in a file with pre-defined format. Which mean not need to write method(handler) for fetch && save data by ourself.
In order to retrieve information from file, you need “FileInputeStream” with path as constructer. Code list as below:
After Properties load data successfully, field can be manipulated by .setProperty / .remove method call.
Of cause, password shouldn’t be store in plaintext form.
After all operation been done, .store used to write all the change in specific file path.