How to load a properties file in java without calling laod method separately
i want to load the file while instantiation of the properties object itself. 
like i have pasted below but i am not able to succeed in it.

class test{
Properties configFile = new Properties(load(new FileInputStream("config.properties"));
}



Question: Plotting two functions with dependent input function
Answer: As I noted in an answer to another recent question, there are several different ways to generate a list that depends on an iterator index, including Table and Array. In this particular case, I think Array is more succinct. (On my machine, there seems to be a very slight speed advantage over Table, as well, but it is too small to care about for this particular problem.

data = Array[myJ2, {1000}];


It is worth knowing that arithmetic operations are Listable, so you can just write 1-data to get the second series. This is almost always the fastest (and most succinct code) to get things done, as it avoids all the loop, iterator and Map paraphernalia.

You also don't need to transpose anything. Notice I have used ListLinePlot instead of ListPlot, which removes the need to specify the Joined option.

ListLinePlot[{data, 1 - data}]