Commit acd8d750 authored by Ari Trachtenberg's avatar Ari Trachtenberg
Browse files

comments

parent 60c22955
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -27,15 +27,11 @@ public class Main {

    public static void main(String[] args) {

        /**
         * Runs a simple test, based on the example in the homework description.
         */
        // Runs a simple test, based on the example in the homework description.
        System.out.println("Simple test:");
        test(new ArrayList<>(List.of("Bravo", "Alfa", "Charlie", "Kilo", "Charlie", "Alfa", "Bravo")));

        /**
         * A more complicated test.
         */
        // A more complicated test.
        System.out.println("\n\n\nLonger test:");
        final BigInteger two = new BigInteger("2");
        BigInteger base = two;
+4 −4
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ import sun.reflect.generics.reflectiveObjects.NotImplementedException;
public class myDistinctCounter extends DistinctCounter {

  /**
   * @InheritDoc
   * @inheritDoc
   */
  public myDistinctCounter(int stateSize) {
    super(stateSize);
@@ -13,7 +13,7 @@ public class myDistinctCounter extends DistinctCounter {
  }

  /**
   * @InheritDoc
   * @inheritDoc
   */
  public myDistinctCounter(Byte[] initialState) {
    super(initialState);
@@ -21,7 +21,7 @@ public class myDistinctCounter extends DistinctCounter {
  }

  /**
   * @InheritDoc
   * @inheritDoc
   */
  @Override
  void saw(String newElement) {
@@ -29,7 +29,7 @@ public class myDistinctCounter extends DistinctCounter {
  }

  /**
   * @InheritDoc
   * @inheritDoc
   */
  @Override
  Integer numDistinct() {