I need to read properties and was wondering where would the right location be. These are the lines I require in a couple of classes:
Right now they are written at the start of the main method. Though I would like it to not clutter the main method. For this reason, it occured to me that the constructor could better enclose that piece of code.
What is the preferred way for using properties file related code?
Edit: While we are talking about Java properties, I also would be happy to get your thoughts on my utility class for reading properties file: