I am trying to use Java to read the parameters for a problem instance from an input file.
for example, suppose a problem is defined by the three parameters seasonality, prices and elasticity, each of which are arrays.
Is there a standard file format for input files? It could look like the one below, or it could have another standard format.
seasonality
10 11 12 13 14 15
prices
10 9 8 7
elasticity
-4 2 1
Is there a standard library or parser which will automatically parse such input files?
Clarification in response to comments
For my purposes, it would be perfect if the Reader class returns a List mapping each parameter to the parameter value which can be either an array or a scalar.
A second class can read the Reader class to create a Problem instance using the parameters defined in the Reader class.
java.util.Scannerand aListto store them in), or JSON if you don't know beforehand how many collections of parameters you'll need.