private double[][] getTimeValuePairsArray(List<Double> timeList, List<Double> valueList){
double[][] timeValuePairs = new double[2][timeList.size()];
for (int i = 0; i < timeList.size(); ++i) {
timeValuePairs[0][i] = ((Double)timeList.get(i)).doubleValue();
timeValuePairs[1][i] = ((Double)valueList.get(i)).doubleValue();
}
return timeValuePairs;
}
timeList
and valueList
are ArrayList
objects and contains some data.
double[][] timeValuePairs1 = getTimeValuePairsArray(timeList, valueList);
//here i want to display values which is returned by the above method.