Arrays within Classes
in
Programming Questions
•
1 year ago
Hi everyone,
I'm trying to pass/parse an array within a class as an argument in another class,
So ideally i'd be able to write (within a class);
void run(Array objectlist){
}
but this doesn't work as "Array" or "array" never seems to be used to specify an array is being created, that being done with;
Object[] objectlist = new Object[10];
If i use the object that holds the array, how can i direct processing to look for the array within the object? eg
void run(ObjectHoldingArray.objectlist myObjectList){
Or alternatively, how can i join two ArrayLists together?
Please let me know if i haven't made myself clear and thanks for any help in advance!
j
1