assign or enlarge list's length
...
{
xList.add((int)Double.parseDouble(parts[0]));
...
}
Integer[] x = xList.toArray(new Integer[xList.size()]);
//then x'size is 5.
// but I want its size is a given value, for instance 100
how to do it.
...
{
xList.add((int)Double.parseDouble(parts[0]));
...
}
Integer[] x = xList.toArray(new Integer[xList.size()]);
//then x'size is 5.
// but I want its size is a given value, for instance 100
how to do it.