Observer Exercise

  • Clone the codebase

  • Run ObserverTest.java as a JUnit test

    • Two assertions should pass
  • Add a new class BinObserver.java that observes the value and stores it in binary format (e.g., 8 in decimal is 1000 in binary)

  • Add a BinObserver to the JUnit test

More details at SourceMaking.