I would like to pass the current date into this method. Eventually I will have a button that I click and it will "Sell an animal"
public static void sellingAnimals(int animalschoosen) {
pets.get(animalschoosen).setSellingDate();
}
In my head I think I may need to create a function and call that function in setSellingDate()
brackets. How would I do this function? or is there a way of passing the current date in this method without a function?