0

Hello,

I have a question about array lists, specifically how to pass array lists to a method. Then once in the method how to do simple algorithms.

My example is I have three array lists, two of which have static double numbers and the third who's numbers are the end result of the algorithm in the method that I want to pass to.

I would appreciate any help that someone could provide.

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by Questions???
0

If I'm understanding your question, you want to know how to pass ArrayLists as arguments to methods, right? It's the same as any other arg.

public void func(ArrayList<Double> arrayList){}
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.