If you are a Java Development and you wish to use an external file for keeping the configuration of your application, you may consider storing it in JSON. If you don't know what JSON look like you can search a lot of resources form Google. Here I will introduces Rhino as a tools for Java Developers to obtain (parse) the value in JSON format.
The steps in creating Java Class for parsing JSON from external file can be found in the Rhino-Tutorial site.
(Extracted from Rhino tutorial Blog)