Hello,
I'm going crazy over this. I'm working on an inheritance problem thats using an arraylist. I'm not sure why everytime I compile I receive a compile message. Please help! It's probably something simple I'm missing.
This is the item I'm referencing from the Animal class
public boolean isShipping(int month,int day, int year)
public static void printAnimalShipping(ArrayList<Animal> lst, int month, int day, int year)
{
for(int i=0; i<lst.size(); i++)
{
Animal a = lst.get(i); //Get Objects;
if(a.isShipping().equals(month))
{
System.out.println(a);}
}
COMPILE ERROR:
isShipping(int,int,int) in Animal cannot be applied to ()
I'm going crazy over this. I'm working on an inheritance problem thats using an arraylist. I'm not sure why everytime I compile I receive a compile message. Please help! It's probably something simple I'm missing.
This is the item I'm referencing from the Animal class
public boolean isShipping(int month,int day, int year)
public static void printAnimalShipping(ArrayList<Animal> lst, int month, int day, int year)
{
for(int i=0; i<lst.size(); i++)
{
Animal a = lst.get(i); //Get Objects;
if(a.isShipping().equals(month))
{
System.out.println(a);}
}
COMPILE ERROR:
isShipping(int,int,int) in Animal cannot be applied to ()