create a simple checkbook class that adheres to java Collections interface.
Kr Younger 7ed0ca784e readme 6 лет назад
.idea readme 6 лет назад
Checkbook readme 6 лет назад
.gitignore Initial commit 6 лет назад
README.md readme 6 лет назад

README.md

Checkbook-OldStyle

Create a simple Checkbook class that adheres to java Collections interface.

A new company, ZipMintyFreshness, needs a checkbook account object inside their new mobile offering.

You need to create a class, and 3 tests for every method.

Maybe you'll get paid.

Checkbook needs to organize and track a series of Transaction objects. See the Transaction class file. Transaction needs to use a few Payee objects for your tests.

  • int size()
  • boolean isEmpty()
  • boolean contains(Transaction element)
  • boolean add(Transaction element)
  • boolean remove(Transaction element)
  • Iterator iterator()
  • AND

    • Transaction[] toArray()
    • Transaction[] toArray(Transaction[] a)

    • double checkbookValue() // sum of all Transactions (both Debits and Credits)

    • Transaction getTransactionsForDate(LocalDate aDate)

    • Transaction[] getAllTransactionsForPayee(Payee payee)

    • Special Constructors:

      • Checkbook(double cashAmount)
      • Checkbook(Payee owner, double cashAmount)

      PLUS (For Extra Points, 10 million extra, to be precise)

      • containsAll(Collection c)
      • boolean addAll(Collection c)
      • boolean removeAll(Collection c)
      • void clear()