Pass Arraylist as argument to function

The Solution to Pass Arraylist as argument to function is


public void AnalyseArray(ArrayList<Integer> array) {
  // Do something
}
...
ArrayList<Integer> A = new ArrayList<Integer>();
AnalyseArray(A);

~ Answered on 2013-06-15 15:40:55


Most Viewed Questions: