This is the default way to store some settings in Java, using Properties. This is just a HashTable, which can be used for getting some properties and it can be initialized from file this way:
Properties settings = new Properties();
settings.load(inputStream);
inputStream can be loaded by something like:
InputStream inputStream = new FileInputStream(fileName);