I have method which takes an int[]
as input.
methodABC(int[] nValue)
I would like to take this nValue from a Java property file
nValue=1,2,3
How do I read this from the config file or do I have to store this in a different format?
What I tried is (changing the nValue to 123 instead of 1,2,3
):
int nValue = Integer.parseInt(configuration.getProperty("nnValue"));
How do we do this?