I am trying to create an array of objects in Java and am having a few issues doing this, I want the array to be created on a existing type I have already set up and the number of arra objects I want to create will be declared using a global interger.
task = new TaskSim(taskDelay, taskPeriod);
I want to create an array of the above object, the values of taskDelay and taskPeriod will be the same for each element within the array, which will be passed through the constructor. However the number of elements I want to create will be defined using a global int.
TaskSim is an is a class I implement to create a task object as show above , so my question here is how do i create an array of task, that have the parameters as shown above.
http://docs.oracle.com/javase/tutorial/java/nutsandbolts/arrays.html