I am struggiling to correctly put together these two constructors, one adds an instance of an array class and the other searches for an int passed-in.
public void Add(Appointment a)
{
Scanner s=null;
for (int i=0; i<this.m_Appointment.length; i++)
{
m_Appointment[i]=a;
a.Read(s);
m_NumElements++;
}
}
public Appointment Find(int appointmentId)
{
for (int i=0; i<this.m_Appointment.length; i++)
{
//if (Appointment.GetAppointmentId() == m_Appointment[i])
{
//return appointmentId;
}
}
return null; //if not found, returns null (though I'll println a message saying that wasn't found)
}