[Solved] Java counting method? [closed]


do you want to get how many times a CD was borrowed? or who borrowed how many times?
to check how many times the CD was borrowed
in your

public void borrower(String nameOfBorrower)
{
  borrower = nameOfBorrower;
  borrowed = true;
  inStock = false;
  times++;
}

public int GetTimes()
{
   return times;
}

4

solved Java counting method? [closed]