I have a Very basic question. How do I need to type parrameters for ArrayList to use the code in BlueJ? I have a method as below.
public void requiresVaccination(int year, ArrayList<Cat>list)
I have created some cat objects cat1, cat2 and cat3.
I thought, I need to type 2012 for theyearand [cat1, cat2, cat3] for the ArrayList but obiusly I am wrong.
Could anyone tell me what I need to do, please?