Loading src/edu/bu/ec504/hw1p1/Main.java +2 −6 Original line number Diff line number Diff line Loading @@ -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; Loading src/edu/bu/ec504/hw1p1/myDistinctCounter.java +4 −4 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ import sun.reflect.generics.reflectiveObjects.NotImplementedException; public class myDistinctCounter extends DistinctCounter { /** * @InheritDoc * @inheritDoc */ public myDistinctCounter(int stateSize) { super(stateSize); Loading @@ -13,7 +13,7 @@ public class myDistinctCounter extends DistinctCounter { } /** * @InheritDoc * @inheritDoc */ public myDistinctCounter(Byte[] initialState) { super(initialState); Loading @@ -21,7 +21,7 @@ public class myDistinctCounter extends DistinctCounter { } /** * @InheritDoc * @inheritDoc */ @Override void saw(String newElement) { Loading @@ -29,7 +29,7 @@ public class myDistinctCounter extends DistinctCounter { } /** * @InheritDoc * @inheritDoc */ @Override Integer numDistinct() { Loading Loading
src/edu/bu/ec504/hw1p1/Main.java +2 −6 Original line number Diff line number Diff line Loading @@ -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; Loading
src/edu/bu/ec504/hw1p1/myDistinctCounter.java +4 −4 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ import sun.reflect.generics.reflectiveObjects.NotImplementedException; public class myDistinctCounter extends DistinctCounter { /** * @InheritDoc * @inheritDoc */ public myDistinctCounter(int stateSize) { super(stateSize); Loading @@ -13,7 +13,7 @@ public class myDistinctCounter extends DistinctCounter { } /** * @InheritDoc * @inheritDoc */ public myDistinctCounter(Byte[] initialState) { super(initialState); Loading @@ -21,7 +21,7 @@ public class myDistinctCounter extends DistinctCounter { } /** * @InheritDoc * @inheritDoc */ @Override void saw(String newElement) { Loading @@ -29,7 +29,7 @@ public class myDistinctCounter extends DistinctCounter { } /** * @InheritDoc * @inheritDoc */ @Override Integer numDistinct() { Loading