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.

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){}

Thanks for the help. I will give that a try.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.